diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-05 14:14:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-08 08:31:04 +0200 |
commit | 90f94f399e20945d53b20ab3eb1bc29bb7774135 (patch) | |
tree | f4de5747106b593547e8f6b97cef82287f007efe /sw/inc/calbck.hxx | |
parent | 8dcb8c9105c2fb5d2b28af60c7072f1fd6e8d0c2 (diff) |
loplugin:checkunusedparams in sw(part1)
Change-Id: I4847b0f96033016e020212fb8d7331309db25b55
Reviewed-on: https://gerrit.libreoffice.org/37287
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/calbck.hxx')
-rw-r--r-- | sw/inc/calbck.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/calbck.hxx b/sw/inc/calbck.hxx index 872de593bc2f..a6f07772c045 100644 --- a/sw/inc/calbck.hxx +++ b/sw/inc/calbck.hxx @@ -123,7 +123,7 @@ public: // in case an SwModify object is destroyed that itself is registered in another SwModify, // its SwClient objects can decide to get registered to the latter instead by calling this method - void CheckRegistration( const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue ); + void CheckRegistration( const SfxPoolItem *pOldValue ); // controlled access to Modify method // mba: this is still considered a hack and it should be fixed; the name makes grep-ing easier @@ -221,7 +221,7 @@ private: virtual void Modify( const SfxPoolItem* pOldValue, const SfxPoolItem *pNewValue ) override { if( pNewValue && pNewValue->Which() == RES_OBJECTDYING ) - CheckRegistration(pOldValue,pNewValue); + CheckRegistration(pOldValue); else if( m_pToTell ) m_pToTell->ModifyNotification(pOldValue, pNewValue); } |