1
0
Преглед на файлове

get_business_data返回值修改为引用类型

zzj преди 6 години
родител
ревизия
6000a44ac0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      area.h

+ 1 - 1
area.h

@@ -144,7 +144,7 @@ struct area_hover
         landmark_dis=0;
     }
 
-	std::shared_ptr<business_data> get_business_data(int type)
+	std::shared_ptr<business_data>&get_business_data(int type)
 	{
 		if(type>=(int)m_data.size())
 		{