mirror of https://gitee.com/bigwinds/arangodb
don't use c_str()
This commit is contained in:
parent
e69a82a2a7
commit
002f503dac
|
@ -562,7 +562,7 @@ Variable* ExecutionNode::varFromVPack(Ast* ast,
|
||||||
std::string msg;
|
std::string msg;
|
||||||
msg +=
|
msg +=
|
||||||
"mandatory variable \"" + std::string(variableName) + "\" not found.";
|
"mandatory variable \"" + std::string(variableName) + "\" not found.";
|
||||||
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_INTERNAL, msg.c_str());
|
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_INTERNAL, msg);
|
||||||
}
|
}
|
||||||
return ast->variables()->createVariable(variable);
|
return ast->variables()->createVariable(variable);
|
||||||
}
|
}
|
||||||
|
|
|
@ -498,7 +498,7 @@ AqlValue Expression::executeSimpleExpression(
|
||||||
std::string msg("unhandled type '");
|
std::string msg("unhandled type '");
|
||||||
msg.append(node->getTypeString());
|
msg.append(node->getTypeString());
|
||||||
msg.append("' in executeSimpleExpression()");
|
msg.append("' in executeSimpleExpression()");
|
||||||
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_INTERNAL, msg.c_str());
|
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_INTERNAL, msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -848,7 +848,7 @@ AqlValue Expression::executeSimpleExpressionReference(
|
||||||
msg.append(v->name);
|
msg.append(v->name);
|
||||||
msg.append("' in executeSimpleExpression()");
|
msg.append("' in executeSimpleExpression()");
|
||||||
|
|
||||||
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_INTERNAL, msg.c_str());
|
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_INTERNAL, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @brief execute an expression of type SIMPLE with RANGE
|
/// @brief execute an expression of type SIMPLE with RANGE
|
||||||
|
@ -1135,7 +1135,7 @@ AqlValue Expression::executeSimpleExpressionComparison(
|
||||||
std::string msg("unhandled type '");
|
std::string msg("unhandled type '");
|
||||||
msg.append(node->getTypeString());
|
msg.append(node->getTypeString());
|
||||||
msg.append("' in executeSimpleExpression()");
|
msg.append("' in executeSimpleExpression()");
|
||||||
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_INTERNAL, msg.c_str());
|
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_INTERNAL, msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue