瀏覽代碼

#修复代码生成器BUG

zxs 3 月之前
父節點
當前提交
8447afa0f3
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      generator/class_view.hpp

+ 3 - 3
generator/class_view.hpp

@@ -467,17 +467,17 @@ namespace analysis {
 			else if (type == "robotics::v3::mvc::multipart_value" || type == "v3::mvc::multipart_value" || type == "mvc::multipart_value") {
 				ss << "\t\t\targument->argument_type_ = " << type_map["Multipart"] << ";" << std::endl;
 				ss << "\t\t\targument->from_storage_type_ = robotics::v3::mvc::from_storage_type::BODY;" << std::endl;
-				ss << "\t\t\targument->parameter_name_ = "";" << std::endl;
+				ss << "\t\t\targument->parameter_name_ = \"\";" << std::endl;
 			}
 			else if (type.size() > 12 && type.substr(0, 11) == "std::vector") {
 				ss << "\t\t\targument->argument_type_ = " << type_map["VecJson"] << ";" << std::endl;
 				ss << "\t\t\targument->from_storage_type_ = robotics::v3::mvc::from_storage_type::BODY;" << std::endl;
-				ss << "\t\t\targument->parameter_name_ = "";" << std::endl;
+				ss << "\t\t\targument->parameter_name_ = \"\";" << std::endl;
 			}
 			else {
 				ss << "\t\t\targument->argument_type_ = " << type_map["Json"] << ";" << std::endl;
 				ss << "\t\t\targument->from_storage_type_ = robotics::v3::mvc::from_storage_type::BODY;" << std::endl;
-				ss << "\t\t\targument->parameter_name_ = "";" << std::endl;
+				ss << "\t\t\targument->parameter_name_ = \"\";" << std::endl;
 			}
 			ss << "\t\t\taction->arguments.push_back(argument);" << std::endl;
 			ss << "\t\t}" << std::endl;