1
0
Fork 0

Fix shared_ptr pilot mistake.

This commit is contained in:
Max Neunhoeffer 2014-08-01 13:22:10 +02:00
parent 341675ffaf
commit 2b14d0fb39
1 changed files with 5 additions and 1 deletions

View File

@ -162,10 +162,14 @@ namespace triagens {
unsigned int depth;
unsigned int totalNrVars;
// This is used to tell all Blocks and share a pointer to ourselves
shared_ptr<VarOverview> me;
VarOverview ()
: depth(0), totalNrVars(0) {
nrVarsHere.push_back(0);
nrVars.push_back(0);
me.reset(this);
};
// Copy constructor used for a subquery:
@ -240,7 +244,7 @@ namespace triagens {
break;
}
eb->_depth = depth;
eb->_varOverview.reset(this);
eb->_varOverview = me;
}
};