mirror of https://gitee.com/bigwinds/arangodb
small optimizations
This commit is contained in:
parent
15368d12ba
commit
389c3e0cf0
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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()));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue