diff options
Diffstat (limited to 'o3tl/qa/cow_wrapper_clients.hxx')
-rw-r--r-- | o3tl/qa/cow_wrapper_clients.hxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/o3tl/qa/cow_wrapper_clients.hxx b/o3tl/qa/cow_wrapper_clients.hxx index 8ca04f8d69ae..f5d4de6fda8b 100644 --- a/o3tl/qa/cow_wrapper_clients.hxx +++ b/o3tl/qa/cow_wrapper_clients.hxx @@ -162,16 +162,15 @@ struct BogusRefCountPolicy { --rCount; --s_nEndOfScope; - return true; } - if(s_bShouldDecrement) + else if(s_bShouldDecrement) { --rCount; s_bShouldDecrement = false; } else CPPUNIT_FAIL("Ref-counting policy decremented when it should not have."); - return true; + return rCount != 0; } }; |