Skip to content
Snippets Groups Projects
Commit 1652f3b2 authored by Benedikt Hegner's avatar Benedikt Hegner
Browse files

fixed logic of Gaudi::popCurrentDataObject()

fixes GAUDI-1068

See merge request !71
parents 73b596cb 9e8cf4dd
No related branches found
No related tags found
No related merge requests found
......@@ -104,13 +104,10 @@ void Gaudi::pushCurrentDataObject(DataObject** pobjAddr) {
void Gaudi::popCurrentDataObject() {
static std::vector<DataObject**>& c = objectStack();
switch(c.size()) {
case 0:
if (!c.empty()) {
s_currObj = c.back();
c.pop_back();
break;
default:
} else {
s_currObj = &s_objPtr;
break;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment