1
0
Fork 0

small optimizations

This commit is contained in:
Jan Steemann 2015-11-26 16:31:25 +01:00
parent 15368d12ba
commit 389c3e0cf0
2 changed files with 2 additions and 3 deletions

View File

@ -935,8 +935,7 @@ AqlValue Expression::executeSimpleExpressionFCall (AstNode const* node,
parameters.emplace_back(AqlValue(new Json(TRI_UNKNOWN_MEM_ZONE, arg->getStringValue(), arg->getStringLength())), nullptr);
}
else {
auto value = executeSimpleExpression(arg, &myCollection, trx, argv, startPos, vars, regs, false);
parameters.emplace_back(value, myCollection);
parameters.emplace_back(executeSimpleExpression(arg, &myCollection, trx, argv, startPos, vars, regs, false), myCollection);
}
}

View File

@ -678,7 +678,7 @@ std::string TRI_ObjectToString (v8::Handle<v8::Value> const value) {
return "";
}
return std::string(*utf8Value, utf8Value.length());
return std::move(std::string(*utf8Value, utf8Value.length()));
}
////////////////////////////////////////////////////////////////////////////////