aboutsummaryrefslogtreecommitdiff
path: root/odb/details/shared-ptr/base.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/details/shared-ptr/base.cxx')
-rw-r--r--odb/details/shared-ptr/base.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/odb/details/shared-ptr/base.cxx b/odb/details/shared-ptr/base.cxx
index 254ba1e..3331db7 100644
--- a/odb/details/shared-ptr/base.cxx
+++ b/odb/details/shared-ptr/base.cxx
@@ -26,10 +26,7 @@ namespace odb
bool r (--counter_ == 0);
if (r)
- {
- callback_->zero_counter (callback_->arg);
- r = (counter_ == 0);
- }
+ r = callback_->zero_counter (callback_->arg);
return r;
}