1
0
Fork 0

don't use c_str()

This commit is contained in:
jsteemann 2016-09-02 09:14:34 +02:00
parent e69a82a2a7
commit 002f503dac
2 changed files with 4 additions and 4 deletions

View File

@ -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);
} }

View File

@ -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);
} }
} }