瀏覽代碼

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;
         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())
 		if(type>=(int)m_data.size())
 		{
 		{