1
0
Fork 0

use std::move

This commit is contained in:
jsteemann 2016-06-13 10:28:39 +02:00
parent b1723d0395
commit 365a70643e
2 changed files with 2 additions and 2 deletions

View File

@ -470,7 +470,7 @@ void SingleServerTraverser::EdgeGetter::getAllEdges(
VPackBuilder tmpBuilder = VPackBuilder::clone(edge);
_traverser->_edges.emplace(id, tmpBuilder.steal());
edges.emplace_back(id);
edges.emplace_back(std::move(id));
}
}
}

View File

@ -396,7 +396,7 @@ class BreadthFirstEnumerator : public PathEnumerator<edgeIdentifier, vertexIdent
TRI_ASSERT(_nextDepth.empty());
TRI_ASSERT(_currentDepth <= this->_maxDepth);
}
// This access is always save.
// This access is always safe.
// If not it should have bailed out before.
TRI_ASSERT(_toSearchPos < _toSearch.size());