1
0
Fork 0

Fix macos warning: declaring & calling in one line seems to be undeclared.

This commit is contained in:
Willi Goesgens 2015-03-24 11:33:19 +01:00
parent 3b773c0c49
commit 44101c621d
1 changed files with 2 additions and 2 deletions

View File

@ -2877,8 +2877,8 @@ struct FilterCondition {
TRI_ASSERT(lhs->type == NODE_TYPE_VALUE);
TRI_ASSERT(rhs->type == NODE_TYPE_ATTRIBUTE_ACCESS);
std::function<void(AstNode const*, std::string&, std::string&)> buildName =
[&] (AstNode const* node, std::string& variableName, std::string& attributeName) -> void {
std::function<void(AstNode const*, std::string&, std::string&)> buildName;
buildName = [&] (AstNode const* node, std::string& variableName, std::string& attributeName) -> void {
if (node->type == NODE_TYPE_ATTRIBUTE_ACCESS) {
buildName(node->getMember(0), variableName, attributeName);