Don't extend explicity the life time of returned temporaries.

That sort of optimization is compiler's work.
This commit is contained in:
Tiago Gomes
2013-02-16 18:58:22 +00:00
parent ea49b517e8
commit b6ee7b4460
3 changed files with 7 additions and 7 deletions

View File

@@ -1033,7 +1033,7 @@ ConstraintTree::swapLogVar (LogVar X)
{
size_t pos = Util::indexOf (logVars_, X);
assert (pos != logVars_.size());
const CTNodes& nodes = getNodesAtLevel (pos);
CTNodes nodes = getNodesAtLevel (pos);
for (CTNodes::const_iterator nodeIt = nodes.begin();
nodeIt != nodes.end(); ++ nodeIt) {
CTChilds childsCopy = (*nodeIt)->childs();