1
0
Fork 0

use std::move

This commit is contained in:
jsteemann 2016-06-08 22:53:54 +02:00
parent 0c88932669
commit dda513c695
1 changed files with 2 additions and 5 deletions

View File

@ -1196,9 +1196,6 @@ AstNode* Ast::createNodeShortestPath(
return node; return node;
} }
/// @brief create an AST function call node /// @brief create an AST function call node
AstNode* Ast::createNodeFunctionCall(char const* functionName, AstNode* Ast::createNodeFunctionCall(char const* functionName,
AstNode const* arguments) { AstNode const* arguments) {
@ -2999,11 +2996,11 @@ std::pair<std::string, bool> Ast::normalizeFunctionName(char const* name) {
if (functionName.find(':') == std::string::npos) { if (functionName.find(':') == std::string::npos) {
// prepend default namespace for internal functions // prepend default namespace for internal functions
return std::make_pair(functionName, true); return std::make_pair(std::move(functionName), true);
} }
// user-defined function // user-defined function
return std::make_pair(functionName, false); return std::make_pair(std::move(functionName), false);
} }
/// @brief create a node of the specified type /// @brief create a node of the specified type