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 | |
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')
-rw-r--r-- | sw/inc/calbck.hxx | 4 | ||||
-rw-r--r-- | sw/inc/calc.hxx | 2 | ||||
-rw-r--r-- | sw/inc/crsrsh.hxx | 2 | ||||
-rw-r--r-- | sw/inc/doc.hxx | 2 | ||||
-rw-r--r-- | sw/inc/pam.hxx | 2 |
5 files changed, 6 insertions, 6 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); } diff --git a/sw/inc/calc.hxx b/sw/inc/calc.hxx index 4bc00cc6bac4..9e7b3c817d08 100644 --- a/sw/inc/calc.hxx +++ b/sw/inc/calc.hxx @@ -183,7 +183,7 @@ public: SwSbxValue Calculate( const OUString &rStr ); OUString GetStrResult( const SwSbxValue& rValue ); - OUString GetStrResult( double, bool bRound = true ); + OUString GetStrResult( double ); SwCalcExp* VarInsert( const OUString& r ); SwCalcExp* VarLook( const OUString &rStr, bool bIns = false ); diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx index 951b39f7194b..26b33a3df3c2 100644 --- a/sw/inc/crsrsh.hxx +++ b/sw/inc/crsrsh.hxx @@ -465,7 +465,7 @@ public: // Cursor is placed in something that is protected or selection contains // something that is protected. - bool HasReadonlySel(bool bAnnotationMode = false) const; + bool HasReadonlySel() const; // Can the cursor be set to read only ranges? bool IsReadOnlyAvailable() const { return m_bSetCursorInReadOnly; } diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index f75ed2775890..464661358f9e 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -889,7 +889,7 @@ public: evaluating the respective settings (see implementation) */ static void CalculatePagesForPrinting( const SwRootFrame& rLayout, SwRenderData &rData, const SwPrintUIOptions &rOptions, bool bIsPDFExport, sal_Int32 nDocPageCount ); - static void UpdatePagesForPrintingWithPostItData( SwRenderData &rData, const SwPrintUIOptions &rOptions, bool bIsPDFExport, + static void UpdatePagesForPrintingWithPostItData( SwRenderData &rData, const SwPrintUIOptions &rOptions, sal_Int32 nDocPageCount ); static void CalculatePagePairsForProspectPrinting( const SwRootFrame& rLayout, SwRenderData &rData, const SwPrintUIOptions &rOptions, sal_Int32 nDocPageCount ); diff --git a/sw/inc/pam.hxx b/sw/inc/pam.hxx index d6f636626190..7bda3a7cbe9a 100644 --- a/sw/inc/pam.hxx +++ b/sw/inc/pam.hxx @@ -288,7 +288,7 @@ public: /** Is in something protected (readonly) or selection contains something protected. */ - bool HasReadonlySel( bool bFormView, bool bAnnotationMode = false ) const; + bool HasReadonlySel( bool bFormView ) const; bool ContainsPosition(const SwPosition & rPos) const { |