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
Branches
Tags
No related merge requests found
...@@ -104,13 +104,10 @@ void Gaudi::pushCurrentDataObject(DataObject** pobjAddr) { ...@@ -104,13 +104,10 @@ void Gaudi::pushCurrentDataObject(DataObject** pobjAddr) {
void Gaudi::popCurrentDataObject() { void Gaudi::popCurrentDataObject() {
static std::vector<DataObject**>& c = objectStack(); static std::vector<DataObject**>& c = objectStack();
switch(c.size()) { if (!c.empty()) {
case 0:
s_currObj = c.back(); s_currObj = c.back();
c.pop_back(); c.pop_back();
break; } else {
default:
s_currObj = &s_objPtr; s_currObj = &s_objPtr;
break;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment