diff options
Diffstat (limited to 'unotools/source/config/configitem.cxx')
-rw-r--r-- | unotools/source/config/configitem.cxx | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx index 0d055ecf53fa..e05d960f6539 100644 --- a/unotools/source/config/configitem.cxx +++ b/unotools/source/config/configitem.cxx @@ -100,14 +100,16 @@ class ValueCounter_Impl { sal_Int16& rCnt; public: - ValueCounter_Impl(sal_Int16& rCounter): - rCnt(rCounter) - {rCnt++;} + explicit ValueCounter_Impl(sal_Int16& rCounter) + : rCnt(rCounter) + { + rCnt++; + } ~ValueCounter_Impl() - { - OSL_ENSURE(rCnt>0, "RefCount < 0 ??"); - rCnt--; - } + { + OSL_ENSURE(rCnt>0, "RefCount < 0 ??"); + rCnt--; + } }; ConfigChangeListener_Impl::ConfigChangeListener_Impl( |