summaryrefslogtreecommitdiff
path: root/desktop/source/deployment/dp_persmap.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-01 15:39:39 +0200
committerNoel Grandin <noel@peralex.com>2016-03-02 07:57:38 +0200
commit09b5fe4c898cacd69042d1c585e27daf5d86cae7 (patch)
treeec6a77f4d3d2c595da0ef1f61721b23006246109 /desktop/source/deployment/dp_persmap.cxx
parentb0e18a68c86733b6d88a0c990d4fa4d938680727 (diff)
loplugin:unuseddefaultparam in desktop
Change-Id: I9a7ac03dcbc3849eced0f8431e186b59b31b2418
Diffstat (limited to 'desktop/source/deployment/dp_persmap.cxx')
-rw-r--r--desktop/source/deployment/dp_persmap.cxx5
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;
}