}
if (line.empty() || std::all_of(line.begin(), line.end(), isspace)) {
- std::string new_line = std::move(Trim(next_line));
+ std::string new_line = Trim(next_line);
if (new_line.empty() || new_line.find('}') != std::string::npos ||
std::all_of(new_line.begin(), new_line.end(), isspace)) {
line = std::move(new_line);
if (decl.GetMethodType() == Declaration::MethodType::ASYNC)
return {};
- std::string code = std::move(GenMethodResultParcelRead(decl));
+ std::string code = GenMethodResultParcelRead(decl);
code += GenMethodOutParamParcelRead(decl);
code = ReplaceAll(CB_METHOD_PARCEL_READ, "<PARCEL_READ>", code);
return code;
if (decl.GetMethodType() == Declaration::MethodType::ASYNC)
return {};
- std::string code = std::move(GenMethodHandlerResultParcelWrite(decl));
+ std::string code = GenMethodHandlerResultParcelWrite(decl);
code += GenMethodHandlerOutParamParcelWrite(decl);
code = ReplaceAll(CB_METHOD_HANDLER_PARCEL_WRITE, "<PARCEL_WRITE>", code);
return code;
ReplaceAll(CB_SERVICE_BASE, "<METHOD_DECLS>",
GenServiceBaseMethodDecls(iface))
.Transform([&](std::string str) {
- return SmartIndent(std::move(RemoveLine(std::move(str))));
+ return SmartIndent(RemoveLine(std::move(str)));
})
.Out(stream);
}
}
if (line.empty() || std::all_of(line.begin(), line.end(), isspace)) {
- std::string new_line = std::move(Trim(next_line));
+ std::string new_line = Trim(next_line);
if (new_line.empty() || new_line.find('}') != std::string::npos ||
std::all_of(new_line.begin(), new_line.end(), isspace)) {
line = std::move(new_line);
if (has_file)
code = GetFileSharing(code,"_client.send(payload);");
} else {
- std::string read_code = std::move(GenMethodResultParcelRead(decl));
+ std::string read_code = GenMethodResultParcelRead(decl);
read_code += GenMethodOutParamParcelRead(decl);
code = ReplaceAll(CB_METHOD_PARCEL_WRITE_AND_READ,
{{"<PARCEL_WRITE>", code},
if (decl.GetMethodType() == Declaration::MethodType::ASYNC)
return {};
- std::string code = std::move(GenMethodHandlerResultParcelWrite(decl));
+ std::string code = GenMethodHandlerResultParcelWrite(decl);
code += GenMethodHandlerOutParamParcelWrite(decl);
if (HasFile(decl.GetType()))
{ "<METHOD_DECLS>", GenServiceBaseMethodDecls(iface) }
})
.Transform([&](std::string str) {
- return SmartIndent(std::move(RemoveLine(std::move(str))));
+ return SmartIndent(RemoveLine(std::move(str)));
})
.Out(stream);
}