diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-11 08:39:30 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-11 10:49:24 +0200 |
commit | db48f40e0777e566627852aeca92588869498adb (patch) | |
tree | 961998112014e4c85b871f51d1936cb1e7d26d8f /comphelper | |
parent | 6fc3fd29a6d08ee85d3ed5a3bad5de754f568314 (diff) |
loplugin:unusedmethods unused return value in comphelper
Change-Id: If95e3fa61a2c63c4ffc78ef5c27ea5c59088170d
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/instancelocker.cxx | 6 | ||||
-rw-r--r-- | comphelper/source/misc/instancelocker.hxx | 2 |
2 files changed, 3 insertions, 5 deletions
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 |