From 0b018d202dfcf4bb16b708e10085a4146243b0a0 Mon Sep 17 00:00:00 2001 From: Serge Krot Date: Sun, 25 Oct 2015 14:37:11 +0300 Subject: tdf#39440: fix several warnings reported by cppcheck Change-Id: I560d28b7cc67740c6479494d0e5aa62d2ac6ffae Reviewed-on: https://gerrit.libreoffice.org/19587 Tested-by: Jenkins Reviewed-by: Thorsten Behrens --- comphelper/source/misc/configuration.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'comphelper') 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 ); -- cgit