diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-01 15:39:39 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-02 07:57:38 +0200 |
commit | 09b5fe4c898cacd69042d1c585e27daf5d86cae7 (patch) | |
tree | ec6a77f4d3d2c595da0ef1f61721b23006246109 /desktop/source/deployment/dp_persmap.cxx | |
parent | loplugin:unuseddefaultparam in forms (diff) | |
download | core-09b5fe4c898cacd69042d1c585e27daf5d86cae7.tar.gz core-09b5fe4c898cacd69042d1c585e27daf5d86cae7.zip |
loplugin:unuseddefaultparam in desktop
Change-Id: I9a7ac03dcbc3849eced0f8431e186b59b31b2418
Diffstat (limited to 'desktop/source/deployment/dp_persmap.cxx')
-rw-r--r-- | desktop/source/deployment/dp_persmap.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/desktop/source/deployment/dp_persmap.cxx b/desktop/source/deployment/dp_persmap.cxx index d032153cf8dc..f77aff0d01ad 100644 --- a/desktop/source/deployment/dp_persmap.cxx +++ b/desktop/source/deployment/dp_persmap.cxx @@ -290,7 +290,7 @@ void PersistentMap::put( OString const & key, OString const & value ) flush(); } -bool PersistentMap::erase( OString const & key, bool flush_immediately ) +bool PersistentMap::erase( OString const & key ) { if( m_bReadOnly) return false; @@ -298,8 +298,7 @@ bool PersistentMap::erase( OString const & key, bool flush_immediately ) if( !nCount) return false; m_bIsDirty = true; - if( flush_immediately) - flush(); + flush(); return true; } |