diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-06 15:32:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-06 18:36:28 +0200 |
commit | 9bf762769826a872e196051a9ec0540a598973de (patch) | |
tree | 95021dd9a95eb9099127fb5d77558d9776303e5d /sw/inc | |
parent | 2ac309188820036b1b99f983e8b793445e9b2ab2 (diff) |
loplugin:const* make some params and methods const
Change-Id: I3c8ca72b2b41a4f82ee20cbe025b41425f32e715
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104028
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/AnnotationWin.hxx | 4 | ||||
-rw-r--r-- | sw/inc/doc.hxx | 2 | ||||
-rw-r--r-- | sw/inc/fesh.hxx | 2 | ||||
-rw-r--r-- | sw/inc/fldbas.hxx | 2 | ||||
-rw-r--r-- | sw/inc/ndgrf.hxx | 2 | ||||
-rw-r--r-- | sw/inc/numrule.hxx | 2 | ||||
-rw-r--r-- | sw/inc/shellio.hxx | 2 |
7 files changed, 8 insertions, 8 deletions
diff --git a/sw/inc/AnnotationWin.hxx b/sw/inc/AnnotationWin.hxx index 3be381bf3a7c..e55cda17c41c 100644 --- a/sw/inc/AnnotationWin.hxx +++ b/sw/inc/AnnotationWin.hxx @@ -150,12 +150,12 @@ class SAL_DLLPUBLIC_RTTI SwAnnotationWin : public vcl::Window bool IsFollow() const { return mbIsFollow; } void SetFollow( bool bIsFollow) { mbIsFollow = bIsFollow; }; - sal_Int32 GetMetaHeight(); + sal_Int32 GetMetaHeight() const; sal_Int32 GetMinimumSizeWithMeta() const; sal_Int32 GetMinimumSizeWithoutMeta() const; sal_Int32 GetMetaButtonAreaWidth() const; sal_Int32 GetScrollbarWidth() const; - sal_Int32 GetNumFields(); + sal_Int32 GetNumFields() const; void SetSpellChecking(); diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index 6d2d785dc655..115a08a4b17b 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -1146,7 +1146,7 @@ public: bool NumOrNoNum( const SwNodeIndex& rIdx, bool bDel = false); - void StopNumRuleAnimations( OutputDevice* ); + void StopNumRuleAnimations( const OutputDevice* ); /** Insert new table at position @param rPos (will be inserted before Node!). For AutoFormat at input: columns have to be set at predefined width. diff --git a/sw/inc/fesh.hxx b/sw/inc/fesh.hxx index 570597a7e580..0639833d0b1e 100644 --- a/sw/inc/fesh.hxx +++ b/sw/inc/fesh.hxx @@ -646,7 +646,7 @@ public: SwTable::SearchType GetTableInsertMode() const { return m_eTableInsertMode; } void SetTableInsertMode( SwTable::SearchType eFlag ) { m_eTableInsertMode = eFlag; } - bool GetTableCopied() { return m_bTableCopied; } + bool GetTableCopied() const { return m_bTableCopied; } void SetTableCopied( bool bCopied ) { m_bTableCopied = bCopied; } bool DeleteTableSel(); ///< Current selection, may be whole table. diff --git a/sw/inc/fldbas.hxx b/sw/inc/fldbas.hxx index 24c5c9ae3093..68cd955f97c0 100644 --- a/sw/inc/fldbas.hxx +++ b/sw/inc/fldbas.hxx @@ -276,7 +276,7 @@ public: SwFormatField* FindFormatForField(const SwField*) const; SwFormatField* FindFormatForPostItId(sal_uInt32 nPostItId) const; void CollectPostIts(std::vector<SwFormatField*>& rvFormatFields, IDocumentRedlineAccess const& rIDRA, bool HideRedlines); - bool HasHiddenInformationNotes(); + bool HasHiddenInformationNotes() const; void GatherNodeIndex(std::vector<sal_uLong>& rvNodeIndex); void GatherRefFields(std::vector<SwGetRefField*>& rvRFields, const sal_uInt16 nTyp); void GatherFields(std::vector<SwFormatField*>& rvFormatFields, bool bCollectOnlyInDocNodes=true) const; diff --git a/sw/inc/ndgrf.hxx b/sw/inc/ndgrf.hxx index a5fd33f51fe5..ee53db6a7c3c 100644 --- a/sw/inc/ndgrf.hxx +++ b/sw/inc/ndgrf.hxx @@ -84,7 +84,7 @@ public: /// wrappers for non-const calls at GraphicObject void StartGraphicAnimation(OutputDevice* pOut, const Point& rPt, const Size& rSz, long nExtraData, OutputDevice* pFirstFrameOutDev) { maGrfObj.StartAnimation(pOut, rPt, rSz, nExtraData, pFirstFrameOutDev); } - void StopGraphicAnimation(OutputDevice* pOut, long nExtraData) { maGrfObj.StopAnimation(pOut, nExtraData); } + void StopGraphicAnimation(const OutputDevice* pOut, long nExtraData) { maGrfObj.StopAnimation(pOut, nExtraData); } virtual Size GetTwipSize() const override; void SetTwipSize( const Size& rSz ); diff --git a/sw/inc/numrule.hxx b/sw/inc/numrule.hxx index 84f2bfba5426..538f1609836a 100644 --- a/sw/inc/numrule.hxx +++ b/sw/inc/numrule.hxx @@ -303,7 +303,7 @@ namespace numfunc * or not. This is typically true, unless the numbering levels are invisible and have no * indents. */ - bool NumDownChangesIndent(SwWrtShell& rShell); + bool NumDownChangesIndent(const SwWrtShell& rShell); SvxNumberFormat::SvxNumPositionAndSpaceMode GetDefaultPositionAndSpaceMode(); } diff --git a/sw/inc/shellio.hxx b/sw/inc/shellio.hxx index 19a38e083d95..46529ceb7394 100644 --- a/sw/inc/shellio.hxx +++ b/sw/inc/shellio.hxx @@ -131,7 +131,7 @@ public: void ResetASCIIOpts() { m_aASCIIOpts.Reset(); } css::uno::Reference<css::io::XInputStream>& GetInputStream() { return m_xInputStream; } - void SetInputStream(css::uno::Reference<css::io::XInputStream>& xInputStream) + void SetInputStream(const css::uno::Reference<css::io::XInputStream>& xInputStream) { m_xInputStream = xInputStream; } |