Commit 42a4170e authored by Alex Henrie's avatar Alex Henrie

Turn UrnSampler._temp into a local variable

parent 9c3246a4
...@@ -61,9 +61,9 @@ public: ...@@ -61,9 +61,9 @@ public:
else else
{ {
std::swap(_urn[i], _urn.back()); std::swap(_urn[i], _urn.back());
_temp = _urn.back(); Value temp = _urn.back();
_urn.pop_back(); _urn.pop_back();
return _temp; return temp;
} }
} }
...@@ -73,7 +73,6 @@ public: ...@@ -73,7 +73,6 @@ public:
private: private:
vector<Value> _urn; vector<Value> _urn;
Value _temp;
}; };
} // namespace graph_tool } // namespace graph_tool
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment