Browse Source

get_business_data返回值修改为引用类型

zzj 6 years ago
parent
commit
6000a44ac0
1 changed files with 1 additions and 1 deletions
  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())
 		{