diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-28 12:07:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-28 21:32:33 +0200 |
commit | 32894034ea7b283d6c60cb77ef5d8b43a9c15d65 (patch) | |
tree | a210de631bfb7c824c8caaf71cab098358727b81 /include | |
parent | 977a676a718bfa682352d023420f4026ea9d7025 (diff) |
loplugin:constparams in editeng
Change-Id: Ice32a16d14d0132a19e8209d311bb799fd7ee0c8
Reviewed-on: https://gerrit.libreoffice.org/40526
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/editeng.hxx | 2 | ||||
-rw-r--r-- | include/editeng/editview.hxx | 4 | ||||
-rw-r--r-- | include/editeng/fieldupdater.hxx | 2 | ||||
-rw-r--r-- | include/editeng/numitem.hxx | 4 | ||||
-rw-r--r-- | include/editeng/optitems.hxx | 2 | ||||
-rw-r--r-- | include/editeng/outliner.hxx | 40 | ||||
-rw-r--r-- | include/editeng/overflowingtxt.hxx | 18 | ||||
-rw-r--r-- | include/editeng/splwrap.hxx | 2 | ||||
-rw-r--r-- | include/editeng/svxacorr.hxx | 6 | ||||
-rw-r--r-- | include/editeng/unolingu.hxx | 2 | ||||
-rw-r--r-- | include/editeng/unotext.hxx | 6 |
11 files changed, 44 insertions, 44 deletions
diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx index 5ecb5ddb1008..54e92ffc6b10 100644 --- a/include/editeng/editeng.hxx +++ b/include/editeng/editeng.hxx @@ -160,7 +160,7 @@ private: EditEngine( const EditEngine& ) = delete; EditEngine& operator=( const EditEngine& ) = delete; - EDITENG_DLLPRIVATE bool PostKeyEvent( const KeyEvent& rKeyEvent, EditView* pView, vcl::Window* pFrameWin ); + EDITENG_DLLPRIVATE bool PostKeyEvent( const KeyEvent& rKeyEvent, EditView* pView, vcl::Window const * pFrameWin ); EDITENG_DLLPRIVATE void CursorMoved(ContentNode* pPrevNode); EDITENG_DLLPRIVATE void CheckIdleFormatter(); diff --git a/include/editeng/editview.hxx b/include/editeng/editview.hxx index bbf70718c5bc..07333c75fe93 100644 --- a/include/editeng/editview.hxx +++ b/include/editeng/editview.hxx @@ -160,7 +160,7 @@ public: void InsertText( const OUString& rNew, bool bSelect = false ); - bool PostKeyEvent( const KeyEvent& rKeyEvent, vcl::Window* pFrameWin = nullptr ); + bool PostKeyEvent( const KeyEvent& rKeyEvent, vcl::Window const * pFrameWin = nullptr ); bool MouseButtonUp( const MouseEvent& rMouseEvent ); bool MouseButtonDown( const MouseEvent& rMouseEvent ); @@ -217,7 +217,7 @@ public: void SetAnchorMode( EEAnchorMode eMode ); EEAnchorMode GetAnchorMode() const; - void CompleteAutoCorrect( vcl::Window* pFrameWin = nullptr ); + void CompleteAutoCorrect( vcl::Window const * pFrameWin = nullptr ); EESpellState StartSpeller( bool bMultipleDoc = false ); EESpellState StartThesaurus(); diff --git a/include/editeng/fieldupdater.hxx b/include/editeng/fieldupdater.hxx index a8bbb5c88288..b6057015f592 100644 --- a/include/editeng/fieldupdater.hxx +++ b/include/editeng/fieldupdater.hxx @@ -28,7 +28,7 @@ class EDITENG_DLLPUBLIC FieldUpdater std::unique_ptr<FieldUpdaterImpl> mpImpl; public: - FieldUpdater(EditTextObject& rObj); + FieldUpdater(EditTextObject const & rObj); FieldUpdater(const FieldUpdater& r); ~FieldUpdater(); diff --git a/include/editeng/numitem.hxx b/include/editeng/numitem.hxx index 1e72154b43b2..985e73e0a181 100644 --- a/include/editeng/numitem.hxx +++ b/include/editeng/numitem.hxx @@ -295,8 +295,8 @@ class EDITENG_DLLPUBLIC SvxNumBulletItem : public SfxPoolItem { std::unique_ptr<SvxNumRule> pNumRule; public: - explicit SvxNumBulletItem(SvxNumRule& rRule); - SvxNumBulletItem(SvxNumRule& rRule, sal_uInt16 nWhich ); + explicit SvxNumBulletItem(SvxNumRule const & rRule); + SvxNumBulletItem(SvxNumRule const & rRule, sal_uInt16 nWhich ); SvxNumBulletItem(const SvxNumBulletItem& rCopy); virtual ~SvxNumBulletItem() override; diff --git a/include/editeng/optitems.hxx b/include/editeng/optitems.hxx index b5faa4829842..82c9b55748d5 100644 --- a/include/editeng/optitems.hxx +++ b/include/editeng/optitems.hxx @@ -37,7 +37,7 @@ class EDITENG_DLLPUBLIC SfxSpellCheckItem: public SfxPoolItem public: SfxSpellCheckItem( css::uno::Reference< - css::linguistic2::XSpellChecker1 > &xChecker, + css::linguistic2::XSpellChecker1 > const &xChecker, sal_uInt16 nWhich ); SfxSpellCheckItem( const SfxSpellCheckItem& rItem ); diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx index 49f6d5ea19cb..3e7e889064d1 100644 --- a/include/editeng/outliner.hxx +++ b/include/editeng/outliner.hxx @@ -206,7 +206,7 @@ class EDITENG_DLLPUBLIC OutlinerView final EDITENG_DLLPRIVATE void ImplExpandOrCollaps( sal_Int32 nStartPara, sal_Int32 nEndPara, bool bExpand ); EDITENG_DLLPRIVATE sal_Int32 ImpCheckMousePos( const Point& rPosPixel, MouseTarget& reTarget); - EDITENG_DLLPRIVATE void ImpToggleExpand( Paragraph* pParentPara ); + EDITENG_DLLPRIVATE void ImpToggleExpand( Paragraph const * pParentPara ); EDITENG_DLLPRIVATE ParaRange ImpGetSelectedParagraphs( bool bIncludeHiddenChildren ); EDITENG_DLLPRIVATE sal_Int32 ImpInitPaste( sal_Int32& rStart ); @@ -224,7 +224,7 @@ public: void Scroll( long nHorzScroll, long nVertScroll ); void Paint( const tools::Rectangle& rRect, OutputDevice* pTargetDevice = nullptr ); - bool PostKeyEvent( const KeyEvent& rKEvt, vcl::Window* pFrameWin = nullptr ); + bool PostKeyEvent( const KeyEvent& rKEvt, vcl::Window const * pFrameWin = nullptr ); bool MouseButtonDown( const MouseEvent& ); bool MouseButtonUp( const MouseEvent& ); void ReleaseMouse(); @@ -249,7 +249,7 @@ public: void CreateSelectionList (std::vector<Paragraph*> &aSelList) ; // Retruns the number of selected paragraphs - sal_Int32 Select( Paragraph* pParagraph, bool bSelect = true); + sal_Int32 Select( Paragraph const * pParagraph, bool bSelect = true); OUString GetSelected() const; void SelectRange( sal_Int32 nFirst, sal_Int32 nCount ); @@ -363,7 +363,7 @@ public: bool IsCursorAtWrongSpelledWord(); bool IsWrongSpelledWordAtPos( const Point& rPosPixel, bool bMarkIfWrong = false ); - void ExecuteSpellPopup( const Point& rPosPixel, Link<SpellCallbackInfo&,void>* pCallBack ); + void ExecuteSpellPopup( const Point& rPosPixel, Link<SpellCallbackInfo&,void> const * pCallBack ); void SetInvalidateMore( sal_uInt16 nPixel ); sal_uInt16 GetInvalidateMore() const; @@ -659,7 +659,7 @@ protected: void ParagraphDeleted( sal_Int32 nParagraph ); void ParaAttribsChanged( sal_Int32 nParagraph ); - void StyleSheetChanged( SfxStyleSheet* pStyle ); + void StyleSheetChanged( SfxStyleSheet const * pStyle ); void InvalidateBullet(sal_Int32 nPara); void PaintBullet( sal_Int32 nPara, const Point& rStartPos, @@ -698,7 +698,7 @@ public: void SetAddExtLeading( bool b ); size_t InsertView( OutlinerView* pView, size_t nIndex = size_t(-1) ); - void RemoveView( OutlinerView* pView ); + void RemoveView( OutlinerView const * pView ); OutlinerView* RemoveView( size_t nIndex ); OutlinerView* GetView( size_t nIndex ) const; size_t GetViewCount() const; @@ -707,7 +707,7 @@ public: void SetText( const OutlinerParaObject& ); void AddText( const OutlinerParaObject& ); void SetText( const OUString& rText, Paragraph* pParagraph ); - OUString GetText( Paragraph* pPara, sal_Int32 nParaCount=1 ) const; + OUString GetText( Paragraph const * pPara, sal_Int32 nParaCount=1 ) const; void SetToEmptyText(); @@ -734,11 +734,11 @@ public: sal_Int32 GetParagraphCount() const; Paragraph* GetParagraph( sal_Int32 nAbsPos ) const; - bool HasChildren( Paragraph* pParagraph ) const; - sal_Int32 GetChildCount( Paragraph* pParent ) const; - bool IsExpanded( Paragraph* pPara ) const; - Paragraph* GetParent( Paragraph* pParagraph ) const; - sal_Int32 GetAbsPos( Paragraph* pPara ); + bool HasChildren( Paragraph const * pParagraph ) const; + sal_Int32 GetChildCount( Paragraph const * pParent ) const; + bool IsExpanded( Paragraph const * pPara ) const; + Paragraph* GetParent( Paragraph const * pParagraph ) const; + sal_Int32 GetAbsPos( Paragraph const * pPara ); sal_Int16 GetDepth( sal_Int32 nPara ) const; void SetDepth( Paragraph* pParagraph, sal_Int16 nNewDepth ); @@ -865,9 +865,9 @@ public: void SetParaAttribs( sal_Int32 nPara, const SfxItemSet& ); SfxItemSet GetParaAttribs( sal_Int32 nPara ); - void Remove( Paragraph* pPara, sal_Int32 nParaCount ); - bool Expand( Paragraph* ); - bool Collapse( Paragraph* ); + void Remove( Paragraph const * pPara, sal_Int32 nParaCount ); + bool Expand( Paragraph const * ); + bool Collapse( Paragraph const * ); void SetParaFlag( Paragraph* pPara, ParaFlag nFlag ); static bool HasParaFlag( const Paragraph* pPara, ParaFlag nFlag ); @@ -905,10 +905,10 @@ public: virtual OUString CalcFieldValue( const SvxFieldItem& rField, sal_Int32 nPara, sal_Int32 nPos, Color*& rTxtColor, Color*& rFldColor ); - void SetSpeller( css::uno::Reference< css::linguistic2::XSpellChecker1 > &xSpeller ); + void SetSpeller( css::uno::Reference< css::linguistic2::XSpellChecker1 > const &xSpeller ); css::uno::Reference< css::linguistic2::XSpellChecker1 > GetSpeller(); - void SetHyphenator( css::uno::Reference< css::linguistic2::XHyphenator >& xHyph ); + void SetHyphenator( css::uno::Reference< css::linguistic2::XHyphenator > const & xHyph ); static void SetForbiddenCharsTable(const std::shared_ptr<SvxForbiddenCharactersTable>& xForbiddenChars); @@ -953,11 +953,11 @@ public: OutlinerMode GetOutlinerMode() const { return nOutlinerMode; } // spell and return a sentence - bool SpellSentence(EditView& rEditView, svx::SpellPortions& rToFill ); + bool SpellSentence(EditView const & rEditView, svx::SpellPortions& rToFill ); // put spell position to start of current sentence - void PutSpellingToSentenceStart( EditView& rEditView ); + void PutSpellingToSentenceStart( EditView const & rEditView ); // applies a changed sentence - void ApplyChangedSentence(EditView& rEditView, const svx::SpellPortions& rNewPortions, bool bRecheck ); + void ApplyChangedSentence(EditView const & rEditView, const svx::SpellPortions& rNewPortions, bool bRecheck ); /** sets a link that is called at the beginning of a drag operation at an edit view */ void SetBeginDropHdl( const Link<EditView*,void>& rLink ); diff --git a/include/editeng/overflowingtxt.hxx b/include/editeng/overflowingtxt.hxx index f7410ab40b6f..0a84fd5f5e3a 100644 --- a/include/editeng/overflowingtxt.hxx +++ b/include/editeng/overflowingtxt.hxx @@ -48,16 +48,16 @@ class Outliner; class TextChainingUtils { public: - static css::uno::Reference< css::datatransfer::XTransferable> CreateTransferableFromText(Outliner *); + static css::uno::Reference< css::datatransfer::XTransferable> CreateTransferableFromText(Outliner const *); static OutlinerParaObject *JuxtaposeParaObject( css::uno::Reference< css::datatransfer::XTransferable > const & xOverflowingContent, Outliner *, - OutlinerParaObject *); + OutlinerParaObject const *); static OutlinerParaObject *DeeplyMergeParaObject( css::uno::Reference< css::datatransfer::XTransferable > const & xOverflowingContent, Outliner *, - OutlinerParaObject *); + OutlinerParaObject const *); }; /* @@ -69,8 +69,8 @@ public: class OverflowingText { public: - OutlinerParaObject *JuxtaposeParaObject(Outliner *, OutlinerParaObject *); - OutlinerParaObject *DeeplyMergeParaObject(Outliner *, OutlinerParaObject *); + OutlinerParaObject *JuxtaposeParaObject(Outliner *, OutlinerParaObject const *); + OutlinerParaObject *DeeplyMergeParaObject(Outliner *, OutlinerParaObject const *); private: friend class Outliner; @@ -104,10 +104,10 @@ private: class EDITENG_DLLPUBLIC OFlowChainedText { public: - OFlowChainedText(Outliner *, bool ); + OFlowChainedText(Outliner const *, bool ); ~OFlowChainedText(); - OutlinerParaObject *InsertOverflowingText(Outliner *, OutlinerParaObject *); + OutlinerParaObject *InsertOverflowingText(Outliner *, OutlinerParaObject const *); OutlinerParaObject *RemoveOverflowingText(Outliner *); ESelection GetOverflowPointSel() const; @@ -125,8 +125,8 @@ private: class EDITENG_DLLPUBLIC UFlowChainedText { public: - UFlowChainedText(Outliner *, bool); - OutlinerParaObject *CreateMergedUnderflowParaObject(Outliner *, OutlinerParaObject *); + UFlowChainedText(Outliner const *, bool); + OutlinerParaObject *CreateMergedUnderflowParaObject(Outliner *, OutlinerParaObject const *); private: css::uno::Reference< css::datatransfer::XTransferable > mxUnderflowingTxt; diff --git a/include/editeng/splwrap.hxx b/include/editeng/splwrap.hxx index 1ef5406bc4ec..6f76397cc8e9 100644 --- a/include/editeng/splwrap.hxx +++ b/include/editeng/splwrap.hxx @@ -74,7 +74,7 @@ public: SvxSpellWrapper( vcl::Window* pWn, const bool bStart, const bool bIsAllRight ); SvxSpellWrapper( vcl::Window* pWn, - css::uno::Reference< css::linguistic2::XHyphenator > &xHyphenator, + css::uno::Reference< css::linguistic2::XHyphenator > const &xHyphenator, const bool bStart, const bool bOther ); virtual ~SvxSpellWrapper(); diff --git a/include/editeng/svxacorr.hxx b/include/editeng/svxacorr.hxx index f5d3ddf0652c..1f8e31287f7e 100644 --- a/include/editeng/svxacorr.hxx +++ b/include/editeng/svxacorr.hxx @@ -178,7 +178,7 @@ class EDITENG_DLLPUBLIC SvxAutoCorrectLanguageLists tools::SvRef<SotStorage>& rStg); static void SaveExceptList_Imp( const SvStringsISortDtor& rLst, const sal_Char* pStrmName, - tools::SvRef<SotStorage>& rStg, + tools::SvRef<SotStorage> const & rStg, bool bConvert = false); bool MakeBlocklist_Imp( SotStorage& rStg ); @@ -280,11 +280,11 @@ public: // to the actual SwTxtNode/EditNode string because it inserts the character // in rDoc and expects that to side-effect rTxt void DoAutoCorrect( SvxAutoCorrDoc& rDoc, const OUString& rTxt, - sal_Int32 nPos, sal_Unicode cInsChar, bool bInsert, vcl::Window* pFrameWin = nullptr ); + sal_Int32 nPos, sal_Unicode cInsChar, bool bInsert, vcl::Window const * pFrameWin = nullptr ); // Return for the autotext expansion the previous word, // AutoCorrect - corresponding algorithm - bool GetPrevAutoCorrWord( SvxAutoCorrDoc& rDoc, const OUString& rTxt, + bool GetPrevAutoCorrWord( SvxAutoCorrDoc const & rDoc, const OUString& rTxt, sal_Int32 nPos, OUString& rWord ) const; // Search for the words in the replacement table. diff --git a/include/editeng/unolingu.hxx b/include/editeng/unolingu.hxx index 8558925cc401..78807780da17 100644 --- a/include/editeng/unolingu.hxx +++ b/include/editeng/unolingu.hxx @@ -121,7 +121,7 @@ private: public: SvxDicListChgClamp( css::uno::Reference< - css::linguistic2::XSearchableDictionaryList > &rxDicList ); + css::linguistic2::XSearchableDictionaryList > const &rxDicList ); ~SvxDicListChgClamp(); }; diff --git a/include/editeng/unotext.hxx b/include/editeng/unotext.hxx index 6267d963eee3..d2d29a8b0078 100644 --- a/include/editeng/unotext.hxx +++ b/include/editeng/unotext.hxx @@ -158,8 +158,8 @@ class SvxTextEditSource; class SvxFieldData; struct ESelection; -EDITENG_DLLPUBLIC void GetSelection( struct ESelection& rSel, SvxTextForwarder* pForwarder ) throw(); -EDITENG_DLLPUBLIC void CheckSelection( struct ESelection& rSel, SvxTextForwarder* pForwarder ) throw(); +EDITENG_DLLPUBLIC void GetSelection( struct ESelection& rSel, SvxTextForwarder const * pForwarder ) throw(); +EDITENG_DLLPUBLIC void CheckSelection( struct ESelection& rSel, SvxTextForwarder const * pForwarder ) throw(); // This class implements a SvxEditSource and SvxTextForwarder and does @@ -326,7 +326,7 @@ public: static bool SetPropertyValueHelper( const SfxItemPropertySimpleEntry* pMap, const css::uno::Any& aValue, SfxItemSet& rNewSet, const ESelection* pSelection = nullptr, SvxEditSource* pEditSource = nullptr ); /// @throws css::uno::RuntimeException - static bool GetPropertyValueHelper( SfxItemSet& rSet, const SfxItemPropertySimpleEntry* pMap, css::uno::Any& aAny, const ESelection* pSelection = nullptr, SvxEditSource* pEditSource = nullptr ); + static bool GetPropertyValueHelper( SfxItemSet const & rSet, const SfxItemPropertySimpleEntry* pMap, css::uno::Any& aAny, const ESelection* pSelection = nullptr, SvxEditSource* pEditSource = nullptr ); void attachField( const SvxFieldData* pData ) throw(); |