From db48f40e0777e566627852aeca92588869498adb Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 11 Jan 2016 08:39:30 +0200 Subject: loplugin:unusedmethods unused return value in comphelper Change-Id: If95e3fa61a2c63c4ffc78ef5c27ea5c59088170d --- comphelper/source/misc/instancelocker.cxx | 6 ++---- comphelper/source/misc/instancelocker.hxx | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'comphelper') diff --git a/comphelper/source/misc/instancelocker.cxx b/comphelper/source/misc/instancelocker.cxx index 0348c3b96ec8..131efb7e2935 100644 --- a/comphelper/source/misc/instancelocker.cxx +++ b/comphelper/source/misc/instancelocker.cxx @@ -445,12 +445,12 @@ void SAL_CALL OLockListener::notifyTermination( const lang::EventObject& aEvent // XInitialization -bool OLockListener::Init() +void OLockListener::Init() { ::osl::ResettableMutexGuard aGuard( m_aMutex ); if ( m_bDisposed || m_bInitialized ) - return false; + return; try { @@ -481,8 +481,6 @@ bool OLockListener::Init() } m_bInitialized = true; - - return true; } void createRegistryInfo_OInstanceLocker() diff --git a/comphelper/source/misc/instancelocker.hxx b/comphelper/source/misc/instancelocker.hxx index 45986d751b48..de9064d280a9 100644 --- a/comphelper/source/misc/instancelocker.hxx +++ b/comphelper/source/misc/instancelocker.hxx @@ -102,7 +102,7 @@ public: virtual ~OLockListener(); - bool Init(); + void Init(); void Dispose(); // XEventListener -- cgit