Explorar o código

get_business_data返回值修改为引用类型

zzj %!s(int64=6) %!d(string=hai) anos
pai
achega
6000a44ac0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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())
 		{