From 27319418ed7601fa62993e39894bb8f8902a88d0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 27 Jul 2016 14:25:48 +0200 Subject: loplugin:countusersofdefaultparams in store..svtools Change-Id: I15b4400bddc5a4d0e3de5dfffe18b7e493f97df6 Reviewed-on: https://gerrit.libreoffice.org/27580 Tested-by: Jenkins Reviewed-by: Noel Grandin --- store/source/lockbyte.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'store') diff --git a/store/source/lockbyte.cxx b/store/source/lockbyte.cxx index a446a454cbb4..65ac5c3dc947 100644 --- a/store/source/lockbyte.cxx +++ b/store/source/lockbyte.cxx @@ -813,13 +813,13 @@ template< class T > struct ResourceHolder T m_value; explicit ResourceHolder (T const & value = T()) : m_value (value) {} - ~ResourceHolder() { reset(); } + ~ResourceHolder() { reset(T()); } T & get() { return m_value; } T const & get() const { return m_value; } void set (T const & value) { m_value = value; } - void reset (T const & value = T()) + void reset (T const & value) { T tmp (m_value); if (tmp != value) -- cgit v1.2.3