summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorSerge Krot <Serge.Krot@cib.de>2015-10-25 14:37:11 +0300
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2015-10-25 22:31:44 +0000
commit0b018d202dfcf4bb16b708e10085a4146243b0a0 (patch)
tree4a00a62a88666944f6e7178ab70c497a090becc2 /comphelper
parentce463679a5a362d5c3f7c146f70b6be838ddbb2d (diff)
tdf#39440: fix several warnings reported by cppcheck
Change-Id: I560d28b7cc67740c6479494d0e5aa62d2ac6ffae Reviewed-on: https://gerrit.libreoffice.org/19587 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/configuration.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/comphelper/source/misc/configuration.cxx b/comphelper/source/misc/configuration.cxx
index ea01ceae43f0..bb0047506da1 100644
--- a/comphelper/source/misc/configuration.cxx
+++ b/comphelper/source/misc/configuration.cxx
@@ -220,8 +220,7 @@ void comphelper::ConfigurationListener::addListener(ConfigurationListenerPropert
void comphelper::ConfigurationListener::removeListener(ConfigurationListenerPropertyBase *pListener)
{
- auto it = maListeners.begin();
- it = std::find( maListeners.begin(), maListeners.end(), pListener );
+ auto it = std::find( maListeners.begin(), maListeners.end(), pListener );
if ( it != maListeners.end() )
{
maListeners.erase( it );