summaryrefslogtreecommitdiff
path: root/store
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-07-27 14:25:48 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-07-29 07:07:13 +0000
commit27319418ed7601fa62993e39894bb8f8902a88d0 (patch)
treee3d7d8642a6896e3820be916fec1e306429eb3ea /store
parentfd586445a47d50ebfff67a7d5e4a329cf064cb92 (diff)
loplugin:countusersofdefaultparams in store..svtools
Change-Id: I15b4400bddc5a4d0e3de5dfffe18b7e493f97df6 Reviewed-on: https://gerrit.libreoffice.org/27580 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'store')
-rw-r--r--store/source/lockbyte.cxx4
1 files changed, 2 insertions, 2 deletions
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)