diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-06 13:09:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-06 18:35:45 +0200 |
commit | 2ac309188820036b1b99f983e8b793445e9b2ab2 (patch) | |
tree | 80db2a9f7f7726cb015f48f57e1cac8a77b01c58 /svx/source/inc | |
parent | 698e5d54182d96a1fd0c3b864ba0e618f82dd1f1 (diff) |
loplugin:const* make some params and methods const
Change-Id: Idec482c21c270912f9bcaeb980077c1616f67c8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104022
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/inc')
-rw-r--r-- | svx/source/inc/StylesPreviewWindow.hxx | 24 | ||||
-rw-r--r-- | svx/source/inc/datanavi.hxx | 2 | ||||
-rw-r--r-- | svx/source/inc/fmPropBrw.hxx | 2 | ||||
-rw-r--r-- | svx/source/inc/fmexch.hxx | 4 | ||||
-rw-r--r-- | svx/source/inc/fmexpl.hxx | 6 |
5 files changed, 20 insertions, 18 deletions
diff --git a/svx/source/inc/StylesPreviewWindow.hxx b/svx/source/inc/StylesPreviewWindow.hxx index 26ba93d7be79..2b930672d23f 100644 --- a/svx/source/inc/StylesPreviewWindow.hxx +++ b/svx/source/inc/StylesPreviewWindow.hxx @@ -33,8 +33,9 @@ class StyleStatusListener : public SfxStatusListener StylesPreviewWindow_Base* m_pPreviewControl; public: - StyleStatusListener(StylesPreviewWindow_Base* pPreviewControl, - css::uno::Reference<css::frame::XDispatchProvider>& xDispatchProvider); + StyleStatusListener( + StylesPreviewWindow_Base* pPreviewControl, + const css::uno::Reference<css::frame::XDispatchProvider>& xDispatchProvider); void StateChanged(SfxItemState eState, const SfxPoolItem* pState) override; }; @@ -49,8 +50,9 @@ class StyleItemController : public weld::CustomWidgetController css::uno::Reference<css::frame::XDispatchProvider> m_xDispatchProvider; public: - StyleItemController(const std::pair<OUString, OUString>& aStyleName, - css::uno::Reference<css::frame::XDispatchProvider>& xDispatchProvider); + StyleItemController( + const std::pair<OUString, OUString>& aStyleName, + const css::uno::Reference<css::frame::XDispatchProvider>& xDispatchProvider); void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) override; @@ -66,7 +68,7 @@ private: void DrawHighlight(vcl::RenderContext& rRenderContext, Color aFontBack); static void DrawSelection(vcl::RenderContext& rRenderContext); static void DrawContentBackground(vcl::RenderContext& rRenderContext, - tools::Rectangle& aContentRect, Color& aColor); + const tools::Rectangle& aContentRect, const Color& aColor); }; class StylesPreviewWindow_Base @@ -93,9 +95,9 @@ protected: DECL_LINK(GoDown, const OString&, void); public: - StylesPreviewWindow_Base(weld::Builder& xBuilder, - std::vector<std::pair<OUString, OUString>>& aDefaultStyles, - css::uno::Reference<css::frame::XDispatchProvider>& xDispatchProvider); + StylesPreviewWindow_Base( + weld::Builder& xBuilder, std::vector<std::pair<OUString, OUString>>& aDefaultStyles, + const css::uno::Reference<css::frame::XDispatchProvider>& xDispatchProvider); ~StylesPreviewWindow_Base(); void Select(const OUString& rStyleName); @@ -110,9 +112,9 @@ private: class StylesPreviewWindow_Impl : public InterimItemWindow, public StylesPreviewWindow_Base { public: - StylesPreviewWindow_Impl(vcl::Window* pParent, - std::vector<std::pair<OUString, OUString>>& aDefaultStyles, - css::uno::Reference<css::frame::XDispatchProvider>& xDispatchProvider); + StylesPreviewWindow_Impl( + vcl::Window* pParent, std::vector<std::pair<OUString, OUString>>& aDefaultStyles, + const css::uno::Reference<css::frame::XDispatchProvider>& xDispatchProvider); ~StylesPreviewWindow_Impl(); void dispose(); diff --git a/svx/source/inc/datanavi.hxx b/svx/source/inc/datanavi.hxx index 652ce21fa876..30f140f2aad1 100644 --- a/svx/source/inc/datanavi.hxx +++ b/svx/source/inc/datanavi.hxx @@ -207,7 +207,7 @@ namespace svxform DECL_LINK(KeyInputHdl, const KeyEvent&, bool); DECL_LINK(PopupMenuHdl, const CommandEvent&, bool); - void AddChildren(weld::TreeIter* _pParent, + void AddChildren(const weld::TreeIter* _pParent, const css::uno::Reference< css::xml::dom::XNode >& _xNode); bool DoToolBoxAction(const OString& rToolBoxID); void AddEntry(std::unique_ptr<ItemNode> _pNewNode, bool _bIsElement, weld::TreeIter* pRet = nullptr); diff --git a/svx/source/inc/fmPropBrw.hxx b/svx/source/inc/fmPropBrw.hxx index 4fb36fc595ce..86408e46fd5a 100644 --- a/svx/source/inc/fmPropBrw.hxx +++ b/svx/source/inc/fmPropBrw.hxx @@ -32,7 +32,7 @@ class FmPropBrwMgr : public SfxChildWindow { public: - FmPropBrwMgr(vcl::Window *pParent, sal_uInt16 nId, SfxBindings *pBindings, SfxChildWinInfo *pInfo); + FmPropBrwMgr(vcl::Window *pParent, sal_uInt16 nId, SfxBindings *pBindings, const SfxChildWinInfo *pInfo); SFX_DECL_CHILDWINDOW(FmPropBrwMgr); }; diff --git a/svx/source/inc/fmexch.hxx b/svx/source/inc/fmexch.hxx index deed78fc5d6c..039a185e2a1b 100644 --- a/svx/source/inc/fmexch.hxx +++ b/svx/source/inc/fmexch.hxx @@ -154,7 +154,7 @@ namespace svxform @param _pEntry @return the number of entries remaining in the selection. */ - size_t onEntryRemoved(weld::TreeView* pView, weld::TreeIter* _pEntry); + size_t onEntryRemoved(const weld::TreeView* pView, const weld::TreeIter* _pEntry); void setFormsRoot( const css::uno::Reference< css::form::XForms >& _rxFormsRoot @@ -165,7 +165,7 @@ namespace svxform // (it is assumed that the entries are sorted in m_aSelectedEntries with respect to the neighbor relationship) - void buildListFromPath(const weld::TreeView* pTreeBox, weld::TreeIter* pRoot); + void buildListFromPath(const weld::TreeView* pTreeBox, const weld::TreeIter* pRoot); // The reverse way: throws everything out of m_aSelectedEntries and rebuilds it using m_aControlPaths void addHiddenControlsFormat(const css::uno::Sequence< css::uno::Reference< css::uno::XInterface > >& seqInterfaces); diff --git a/svx/source/inc/fmexpl.hxx b/svx/source/inc/fmexpl.hxx index 50e16fdccc0f..8f0d99f5676a 100644 --- a/svx/source/inc/fmexpl.hxx +++ b/svx/source/inc/fmexpl.hxx @@ -493,10 +493,10 @@ namespace svxform sal_Int8 ExecuteDrop(const ExecuteDropEvent& rEvt); private: - sal_Int8 implAcceptDataTransfer( const DataFlavorExVector& _rFlavors, sal_Int8 _nAction, weld::TreeIter* _pTargetEntry, bool _bDnD ); + sal_Int8 implAcceptDataTransfer( const DataFlavorExVector& _rFlavors, sal_Int8 _nAction, const weld::TreeIter* _pTargetEntry, bool _bDnD ); sal_Int8 implExecuteDataTransfer( const OControlTransferData& _rData, sal_Int8 _nAction, const Point& _rDropPos, bool _bDnD ); - sal_Int8 implExecuteDataTransfer( const OControlTransferData& _rData, sal_Int8 _nAction, weld::TreeIter* _pTargetEntry, bool _bDnD ); + sal_Int8 implExecuteDataTransfer( const OControlTransferData& _rData, sal_Int8 _nAction, const weld::TreeIter* _pTargetEntry, bool _bDnD ); // check if a cut, copy, or drag operation can be started in the current situation bool implAllowExchange( sal_Int8 _nAction, bool* _pHasNonHidden = nullptr ); @@ -506,7 +506,7 @@ namespace svxform // fills m_aControlExchange in preparation of a DnD or clipboard operation bool implPrepareExchange( sal_Int8 _nAction ); - void ModelHasRemoved(weld::TreeIter* _pEntry); + void ModelHasRemoved(const weld::TreeIter* _pEntry); void doPaste(); void doCopy(); |