Selaa lähdekoodia

get_business_data返回值修改为引用类型

zzj 6 vuotta sitten
vanhempi
commit
6000a44ac0
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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())
 		{