Browse Source

removed move constructors

cl-refactor
Liana Husikyan 10 years ago
parent
commit
c9c8c2e75a
  1. 16
      libsolidity/InterfaceHandler.cpp

16
libsolidity/InterfaceHandler.cpp

@ -24,13 +24,13 @@ string InterfaceHandler::getDocumentation(
switch(_type) switch(_type)
{ {
case DocumentationType::NatspecUser: case DocumentationType::NatspecUser:
return move(userDocumentation(_contractDef)); return userDocumentation(_contractDef);
case DocumentationType::NatspecDev: case DocumentationType::NatspecDev:
return move(devDocumentation(_contractDef)); return devDocumentation(_contractDef);
case DocumentationType::ABIInterface: case DocumentationType::ABIInterface:
return move(getABIInterface(_contractDef)); return getABIInterface(_contractDef);
case DocumentationType::ABISolidityInterface: case DocumentationType::ABISolidityInterface:
return move(getABISolidityInterface(_contractDef)); return getABISolidityInterface(_contractDef);
} }
BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Unknown documentation type")); BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Unknown documentation type"));
@ -103,7 +103,7 @@ string InterfaceHandler::getABIInterface(ContractDefinition const& _contractDef)
event["inputs"] = params; event["inputs"] = params;
abi.append(event); abi.append(event);
} }
return move(Json::FastWriter().write(abi)); return Json::FastWriter().write(abi);
} }
string InterfaceHandler::getABISolidityInterface(ContractDefinition const& _contractDef) string InterfaceHandler::getABISolidityInterface(ContractDefinition const& _contractDef)
@ -140,7 +140,7 @@ string InterfaceHandler::getABISolidityInterface(ContractDefinition const& _cont
ret += ";"; ret += ";";
} }
return move(ret + "}"); return ret + "}";
} }
string InterfaceHandler::userDocumentation(ContractDefinition const& _contractDef) string InterfaceHandler::userDocumentation(ContractDefinition const& _contractDef)
@ -165,7 +165,7 @@ string InterfaceHandler::userDocumentation(ContractDefinition const& _contractDe
} }
doc["methods"] = methods; doc["methods"] = methods;
return move(Json::StyledWriter().write(doc)); return Json::StyledWriter().write(doc);
} }
string InterfaceHandler::devDocumentation(ContractDefinition const& _contractDef) string InterfaceHandler::devDocumentation(ContractDefinition const& _contractDef)
@ -229,7 +229,7 @@ string InterfaceHandler::devDocumentation(ContractDefinition const& _contractDef
} }
doc["methods"] = methods; doc["methods"] = methods;
return move(Json::StyledWriter().write(doc)); return Json::StyledWriter().write(doc);
} }
/* -- private -- */ /* -- private -- */

Loading…
Cancel
Save