diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-31 15:13:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-31 19:42:10 +0200 |
commit | 4a4412f70cd07baa8e67dd92dc1c403455bfe3a4 (patch) | |
tree | 89bf5afd5528229467b05548cbfd1cc59f5f25cf /cui/source/inc | |
parent | ee9e027de092b91e97e4d280f26bd8c73bae602a (diff) |
loplugin:constparams in cui
Change-Id: I5f3e4ba8d953bbce22c3c359bb1c3ae2ac47eb1d
Reviewed-on: https://gerrit.libreoffice.org/40593
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source/inc')
26 files changed, 59 insertions, 59 deletions
diff --git a/cui/source/inc/SpellDialog.hxx b/cui/source/inc/SpellDialog.hxx index aab0989e6751..fb67c063ed9e 100644 --- a/cui/source/inc/SpellDialog.hxx +++ b/cui/source/inc/SpellDialog.hxx @@ -81,7 +81,7 @@ public: SentenceEditWindow_Impl(vcl::Window* pParent, WinBits nBits); virtual ~SentenceEditWindow_Impl() override; - void Init(VclPtr<ToolBox> &rToolbar); + void Init(VclPtr<ToolBox> const &rToolbar); void SetModifyHdl(const Link<Edit&,void>& rLink) override { m_aModifyLink = rLink;} void SetAttrib( const TextAttrib& rAttr, sal_uLong nPara, sal_uInt16 nStart, sal_uInt16 nEnd ); @@ -194,7 +194,7 @@ private: DECL_LINK( InitHdl, void*, void ); - void AddToDictionaryExecute( sal_uInt16 ItemId, PopupMenu *pMenu ); + void AddToDictionaryExecute( sal_uInt16 ItemId, PopupMenu const *pMenu ); void StartSpellOptDlg_Impl(); int InitUserDicts(); void UpdateBoxes_Impl(); diff --git a/cui/source/inc/SvxConfigPageHelper.hxx b/cui/source/inc/SvxConfigPageHelper.hxx index 4b83b1c7dfd6..4f0dd0470a83 100644 --- a/cui/source/inc/SvxConfigPageHelper.hxx +++ b/cui/source/inc/SvxConfigPageHelper.hxx @@ -27,7 +27,7 @@ class SvxConfigPageHelper { public: - static void RemoveEntry( SvxEntries* pEntries, SvxConfigEntry* pChildEntry ); + static void RemoveEntry( SvxEntries* pEntries, SvxConfigEntry const * pChildEntry ); static OUString replaceSaveInName( const OUString& rMessage, const OUString& rSaveInName ); static OUString stripHotKey( const OUString& str ); @@ -78,9 +78,9 @@ public: static bool showKeyConfigTabPage( const css::uno::Reference< css::frame::XFrame >& xFrame ); - static bool EntrySort( SvxConfigEntry* a, SvxConfigEntry* b ); + static bool EntrySort( SvxConfigEntry const * a, SvxConfigEntry const * b ); - static bool SvxConfigEntryModified( SvxConfigEntry* pEntry ); + static bool SvxConfigEntryModified( SvxConfigEntry const * pEntry ); }; diff --git a/cui/source/inc/acccfg.hxx b/cui/source/inc/acccfg.hxx index 62480db4e7c7..adc67e208885 100644 --- a/cui/source/inc/acccfg.hxx +++ b/cui/source/inc/acccfg.hxx @@ -156,7 +156,7 @@ private: DECL_LINK(SaveHdl, sfx2::FileDialogHelper *, void); OUString GetLabel4Command(const OUString& rCommand); - SvTreeListEntry* applySearchFilter(OUString& rSearchTerm, SvTreeListBox* rListBox); + SvTreeListEntry* applySearchFilter(OUString const & rSearchTerm, SvTreeListBox* rListBox); void InitAccCfg(); sal_uLong MapKeyCodeToPos( const vcl::KeyCode &rCode ) const; void StartFileDialog( WinBits nBits, const OUString& rTitle ); diff --git a/cui/source/inc/autocdlg.hxx b/cui/source/inc/autocdlg.hxx index 7da1f441ab4b..405a743efa34 100644 --- a/cui/source/inc/autocdlg.hxx +++ b/cui/source/inc/autocdlg.hxx @@ -267,7 +267,7 @@ private: DECL_LINK(NewDelButtonHdl, Button*, void); DECL_LINK(NewDelActionHdl, AutoCorrEdit&, bool); DECL_LINK(ModifyHdl, Edit&, void); - bool NewDelHdl(void*); + bool NewDelHdl(void const *); void RefillReplaceBox( bool bFromReset, LanguageType eOldLanguage, @@ -327,7 +327,7 @@ private: DECL_LINK(NewDelActionHdl, AutoCorrEdit&, bool); DECL_LINK(SelectHdl, ListBox&, void); DECL_LINK(ModifyHdl, Edit&, void); - bool NewDelHdl(void*); + bool NewDelHdl(void const *); /// Box filled with new language void RefillReplaceBoxes(bool bFromReset, LanguageType eOldLanguage, diff --git a/cui/source/inc/cfg.hxx b/cui/source/inc/cfg.hxx index 6b8950ee5146..f75f4d6f90d2 100644 --- a/cui/source/inc/cfg.hxx +++ b/cui/source/inc/cfg.hxx @@ -120,13 +120,13 @@ private: protected: void ApplyMenu( - css::uno::Reference< css::container::XIndexContainer >& rMenuBar, + css::uno::Reference< css::container::XIndexContainer > const & rMenuBar, css::uno::Reference< css::lang::XSingleComponentFactory >& rFactory, SvxConfigEntry *pMenuData ); bool LoadSubMenus( const css::uno::Reference< css::container::XIndexAccess >& xMenuSettings, - const OUString& rBaseTitle, SvxConfigEntry* pParentData, bool bContextMenu ); + const OUString& rBaseTitle, SvxConfigEntry const * pParentData, bool bContextMenu ); public: @@ -198,7 +198,7 @@ private: static MenuSaveInData* GetDefaultData() { return pDefaultData; } void Apply( - css::uno::Reference< css::container::XIndexContainer >& rNewMenuBar, + css::uno::Reference< css::container::XIndexContainer > const & rNewMenuBar, css::uno::Reference< css::lang::XSingleComponentFactory >& rFactory ); public: @@ -442,7 +442,7 @@ protected: bool bFront = false ); void AddSubMenusToUI( const OUString& rBaseTitle, - SvxConfigEntry* pParentData ); + SvxConfigEntry const * pParentData ); SvTreeListEntry* InsertEntryIntoUI ( SvxConfigEntry* pNewEntryData, sal_uLong nPos = TREELIST_APPEND ); @@ -450,7 +450,7 @@ protected: SvxEntries* FindParentForChild( SvxEntries* pParentEntries, SvxConfigEntry* pChildData ); - void ReloadTopLevelListBox( SvxConfigEntry* pSelection = nullptr ); + void ReloadTopLevelListBox( SvxConfigEntry const * pSelection = nullptr ); public: @@ -467,8 +467,8 @@ public: virtual void MoveEntry( bool bMoveUp ); - bool MoveEntryData( SvTreeListEntry* pSourceEntry, - SvTreeListEntry* pTargetEntry ); + bool MoveEntryData( SvTreeListEntry const * pSourceEntry, + SvTreeListEntry const * pTargetEntry ); bool FillItemSet( SfxItemSet* ) override; void Reset( const SfxItemSet* ) override; @@ -517,7 +517,7 @@ class SvxMainMenuOrganizerDialog : public ModalDialog public: SvxMainMenuOrganizerDialog ( vcl::Window*, SvxEntries*, - SvxConfigEntry*, bool bCreateMenu = false ); + SvxConfigEntry const *, bool bCreateMenu = false ); virtual ~SvxMainMenuOrganizerDialog() override; virtual void dispose() override; @@ -541,12 +541,12 @@ private: void LoadToolbar( const css::uno::Reference< css::container::XIndexAccess >& xToolBarSettings, - SvxConfigEntry* pParentData ); + SvxConfigEntry const * pParentData ); void ApplyToolbar( - css::uno::Reference< css::container::XIndexContainer >& rNewToolbarBar, + css::uno::Reference< css::container::XIndexContainer > const & rNewToolbarBar, css::uno::Reference< css::lang::XSingleComponentFactory >& rFactory, - SvxConfigEntry *pToolbar ); + SvxConfigEntry const *pToolbar ); public: diff --git a/cui/source/inc/cfgutil.hxx b/cui/source/inc/cfgutil.hxx index e7af1f258d1a..528b26f04b0e 100644 --- a/cui/source/inc/cfgutil.hxx +++ b/cui/source/inc/cfgutil.hxx @@ -145,7 +145,7 @@ class SfxConfigGroupListBox : public SvTreeListBox static css::uno::Reference< css::uno::XInterface > getDocumentModel( css::uno::Reference< css::uno::XComponentContext > const & xCtx, - OUString& docName + OUString const & docName ); diff --git a/cui/source/inc/chardlg.hxx b/cui/source/inc/chardlg.hxx index 1b99b60cc5ff..383431046ec4 100644 --- a/cui/source/inc/chardlg.hxx +++ b/cui/source/inc/chardlg.hxx @@ -137,7 +137,7 @@ private: DECL_LINK( FontModifyEditHdl_Impl, Edit&, void ); DECL_LINK( FontModifyListBoxHdl_Impl, ListBox&, void ); DECL_LINK( FontModifyComboBoxHdl_Impl, ComboBox&, void ); - void FontModifyHdl_Impl(void*); + void FontModifyHdl_Impl(void const *); public: using SfxTabPage::ActivatePage; diff --git a/cui/source/inc/connect.hxx b/cui/source/inc/connect.hxx index ab291494e7d3..7bacaac3ad16 100644 --- a/cui/source/inc/connect.hxx +++ b/cui/source/inc/connect.hxx @@ -59,7 +59,7 @@ private: DECL_LINK( ChangeAttrEditHdl_Impl, Edit&, void ); DECL_LINK( ChangeAttrListBoxHdl_Impl, ListBox&, void ); - void ChangeAttrHdl_Impl(void*); + void ChangeAttrHdl_Impl(void const *); public: diff --git a/cui/source/inc/cuigaldlg.hxx b/cui/source/inc/cuigaldlg.hxx index 0c623a835460..189a95e3b4f7 100644 --- a/cui/source/inc/cuigaldlg.hxx +++ b/cui/source/inc/cuigaldlg.hxx @@ -204,7 +204,7 @@ class GalleryThemeProperties : public SfxTabDialog virtual void PageCreated(sal_uInt16 nId, SfxTabPage &rPage) override; public: - GalleryThemeProperties(vcl::Window* pParent, ExchangeData* pData, SfxItemSet* pItemSet); + GalleryThemeProperties(vcl::Window* pParent, ExchangeData* pData, SfxItemSet const * pItemSet); }; class TPGalleryThemeGeneral : public SfxTabPage diff --git a/cui/source/inc/cuihyperdlg.hxx b/cui/source/inc/cuihyperdlg.hxx index 9d7b6954b284..10e1f2d343b2 100644 --- a/cui/source/inc/cuihyperdlg.hxx +++ b/cui/source/inc/cuihyperdlg.hxx @@ -96,7 +96,7 @@ public: virtual void PageCreated( sal_uInt16 nId, IconChoicePage& rPage ) override; - void SetPage( SvxHyperlinkItem* pItem ); + void SetPage( SvxHyperlinkItem const * pItem ); void SetReadOnlyMode( bool bReadOnly ); bool IsHTMLDoc() const { return mbIsHTMLDoc; } diff --git a/cui/source/inc/cuitabarea.hxx b/cui/source/inc/cuitabarea.hxx index 2f6befc45d3b..0faca3c5cd64 100644 --- a/cui/source/inc/cuitabarea.hxx +++ b/cui/source/inc/cuitabarea.hxx @@ -185,7 +185,7 @@ class SvxTransparenceTabPage : public SvxTabPage DECL_LINK(ModifyTransparentHdl_Impl, Edit&, void); DECL_LINK(ModifiedTrgrEditHdl_Impl, Edit&, void); DECL_LINK(ModifiedTrgrListBoxHdl_Impl, ListBox&, void); - void ModifiedTrgrHdl_Impl(void*); + void ModifiedTrgrHdl_Impl(void const *); void ActivateLinear(bool bActivate); void ActivateGradient(bool bActivate); @@ -394,7 +394,7 @@ private: DECL_LINK( ModifiedListBoxHdl_Impl, ListBox&, void ); DECL_LINK( ChangeAutoStepHdl_Impl, CheckBox&, void ); DECL_LINK( ModifiedSliderHdl_Impl, Slider*, void ); - void ModifiedHdl_Impl(void*); + void ModifiedHdl_Impl(void const *); void SetControlState_Impl( css::awt::GradientStyle eXGS ); sal_Int32 SearchGradientList(const OUString& rGradientName); @@ -463,7 +463,7 @@ private: DECL_LINK( ToggleHatchBackgroundColor_Impl, CheckBox&, void ); DECL_LINK( ModifiedBackgroundHdl_Impl, SvxColorListBox&, void ); DECL_LINK( ModifiedSliderHdl_Impl, Slider*, void ); - void ModifiedHdl_Impl(void*); + void ModifiedHdl_Impl(void const *); DECL_LINK( ClickAddHdl_Impl, Button*, void ); DECL_LINK( ClickModifyHdl_Impl, Button*, void ); DECL_LINK( ClickRenameHdl_Impl, SvxPresetListBox*, void ); diff --git a/cui/source/inc/cuitabline.hxx b/cui/source/inc/cuitabline.hxx index 79a4f587c1da..670297f860f4 100644 --- a/cui/source/inc/cuitabline.hxx +++ b/cui/source/inc/cuitabline.hxx @@ -176,14 +176,14 @@ private: DECL_LINK( ChangeStartClickHdl_Impl, Button*, void ); DECL_LINK( ChangeStartListBoxHdl_Impl, ListBox&, void ); DECL_LINK( ChangeStartModifyHdl_Impl, Edit&, void ); - void ChangeStartHdl_Impl(void*); + void ChangeStartHdl_Impl(void const *); DECL_LINK( ChangeEndListBoxHdl_Impl, ListBox&, void ); DECL_LINK( ChangeEndModifyHdl_Impl, Edit&, void ); DECL_LINK( ChangeEndClickHdl_Impl, Button*, void ); - void ChangeEndHdl_Impl(void*); + void ChangeEndHdl_Impl(void const *); DECL_LINK( ChangePreviewListBoxHdl_Impl, SvxColorListBox&, void ); DECL_LINK( ChangePreviewModifyHdl_Impl, Edit&, void ); - void ChangePreviewHdl_Impl(void*); + void ChangePreviewHdl_Impl(void const *); DECL_LINK( ChangeTransparentHdl_Impl, Edit&, void ); DECL_LINK( ChangeEdgeStyleHdl_Impl, ListBox&, void ); @@ -193,8 +193,8 @@ private: void FillXLSet_Impl(); - void InitSymbols(MenuButton* pButton); - void SymbolSelected(MenuButton* pButton); + void InitSymbols(MenuButton const * pButton); + void SymbolSelected(MenuButton const * pButton); void FillListboxes(); public: @@ -287,7 +287,7 @@ private: DECL_LINK( ClickModifyHdl_Impl, Button*, void ); DECL_LINK( ClickDeleteHdl_Impl, Button*, void ); DECL_LINK( SelectLinestyleListBoxHdl_Impl, ListBox&, void ); - void SelectLinestyleHdl_Impl(ListBox*); + void SelectLinestyleHdl_Impl(ListBox const *); DECL_LINK( ChangePreviewHdl_Impl, Edit&, void ); DECL_LINK( ChangeNumber1Hdl_Impl, Edit&, void ); DECL_LINK( ChangeNumber2Hdl_Impl, Edit&, void ); diff --git a/cui/source/inc/dbregister.hxx b/cui/source/inc/dbregister.hxx index 80b6638ece00..3d3b2591a6cd 100644 --- a/cui/source/inc/dbregister.hxx +++ b/cui/source/inc/dbregister.hxx @@ -79,7 +79,7 @@ namespace svx @param _pEntry The entry to remove if the entry will be changed */ - void openLinkDialog(const OUString& _sOldName,const OUString& _sOldLocation,SvTreeListEntry* _pEntry = nullptr); + void openLinkDialog(const OUString& _sOldName,const OUString& _sOldLocation,SvTreeListEntry const * _pEntry = nullptr); public: DbRegistrationOptionsPage( vcl::Window* pParent, const SfxItemSet& rSet ); diff --git a/cui/source/inc/dlgname.hxx b/cui/source/inc/dlgname.hxx index 11dbed3de84a..e1ffd2a1e338 100644 --- a/cui/source/inc/dlgname.hxx +++ b/cui/source/inc/dlgname.hxx @@ -142,7 +142,7 @@ private: DECL_LINK(Button2Hdl, Button*, void); public: - SvxMessDialog( vcl::Window* pWindow, const OUString& rText, const OUString& rDesc, Image* pImg = nullptr ); + SvxMessDialog( vcl::Window* pWindow, const OUString& rText, const OUString& rDesc, Image const * pImg = nullptr ); virtual ~SvxMessDialog() override; virtual void dispose() override; diff --git a/cui/source/inc/hangulhanjadlg.hxx b/cui/source/inc/hangulhanjadlg.hxx index 39241df6fec5..209c1d9d5e4b 100644 --- a/cui/source/inc/hangulhanjadlg.hxx +++ b/cui/source/inc/hangulhanjadlg.hxx @@ -81,7 +81,7 @@ namespace svx DECL_LINK( SelectSuggestionListBoxHdl, ListBox&, void ); DECL_LINK( SelectSuggestionValueSetHdl, ValueSet*, void ); - void SelectSuggestionHdl(Control*); + void SelectSuggestionHdl(Control const *); void SetHelpIds(); @@ -306,7 +306,7 @@ namespace svx void UpdateButtonStates(); void SetEditText( Edit& _rEdit, sal_uInt16 _nEntryNum ); - void EditModify( Edit* _pEdit, sal_uInt8 _nEntryOffset ); + void EditModify( Edit const * _pEdit, sal_uInt8 _nEntryOffset ); bool DeleteEntryFromDictionary( const css::uno::Reference< css::linguistic2::XConversionDictionary >& xDict ); diff --git a/cui/source/inc/hyphen.hxx b/cui/source/inc/hyphen.hxx index 5670fa18610e..4e756c019c82 100644 --- a/cui/source/inc/hyphen.hxx +++ b/cui/source/inc/hyphen.hxx @@ -80,7 +80,7 @@ class SvxHyphenWordDialog : public SfxModalDialog public: SvxHyphenWordDialog( const OUString &rWord, LanguageType nLang, vcl::Window* pParent, - css::uno::Reference< css::linguistic2::XHyphenator > &xHyphen, + css::uno::Reference< css::linguistic2::XHyphenator > const &xHyphen, SvxSpellWrapper* pWrapper ); virtual ~SvxHyphenWordDialog() override; virtual void dispose() override; diff --git a/cui/source/inc/iconcdlg.hxx b/cui/source/inc/iconcdlg.hxx index 7efc4e48504e..2c82ead2534c 100644 --- a/cui/source/inc/iconcdlg.hxx +++ b/cui/source/inc/iconcdlg.hxx @@ -129,8 +129,8 @@ private: void FocusOnIcon ( sal_uInt16 nId ); protected: - static void ShowPageImpl ( IconChoicePageData* pData ); - static void HidePageImpl ( IconChoicePageData* pData ); + static void ShowPageImpl ( IconChoicePageData const * pData ); + static void HidePageImpl ( IconChoicePageData const * pData ); virtual void PageCreated( sal_uInt16 nId, IconChoicePage& rPage ); IconChoicePage* GetTabPage( sal_uInt16 nPageId ) diff --git a/cui/source/inc/linkdlg.hxx b/cui/source/inc/linkdlg.hxx index cd236db2ab5a..ecfcd3855fa4 100644 --- a/cui/source/inc/linkdlg.hxx +++ b/cui/source/inc/linkdlg.hxx @@ -84,7 +84,7 @@ public: SvBaseLinksDlg( vcl::Window * pParent, sfx2::LinkManager*, bool bHtml = false ); virtual ~SvBaseLinksDlg() override; virtual void dispose() override; - void SetActLink( sfx2::SvBaseLink * pLink ); + void SetActLink( sfx2::SvBaseLink const * pLink ); }; #endif // INCLUDED_CUI_SOURCE_INC_LINKDLG_HXX diff --git a/cui/source/inc/macroass.hxx b/cui/source/inc/macroass.hxx index e7fcd756e29f..d7b631f8c21e 100644 --- a/cui/source/inc/macroass.hxx +++ b/cui/source/inc/macroass.hxx @@ -42,7 +42,7 @@ class SfxMacroTabPage : public SfxTabPage DECL_LINK( AssignDeleteHdl_Impl, SvTreeListBox*, bool ); DECL_LINK( AssignDeleteClickHdl_Impl, Button *, void ); - bool AssignDeleteHdl(Control *); + bool AssignDeleteHdl(Control const *); DECL_LINK( TimeOut_Impl, Timer*, void ); protected: diff --git a/cui/source/inc/measure.hxx b/cui/source/inc/measure.hxx index 1cece6f8cab7..bebb57ee1857 100644 --- a/cui/source/inc/measure.hxx +++ b/cui/source/inc/measure.hxx @@ -64,7 +64,7 @@ private: DECL_LINK( ChangeAttrEditHdl_Impl, Edit&, void ); DECL_LINK( ChangeAttrListBoxHdl_Impl, ListBox&, void ); DECL_LINK( ChangeAttrClickHdl_Impl, Button*, void ); - void ChangeAttrHdl_Impl(void*); + void ChangeAttrHdl_Impl(void const *); public: diff --git a/cui/source/inc/numfmt.hxx b/cui/source/inc/numfmt.hxx index f49f0077e130..8e8d85784d63 100644 --- a/cui/source/inc/numfmt.hxx +++ b/cui/source/inc/numfmt.hxx @@ -155,8 +155,8 @@ private: DECL_LINK( OptEditHdl_Impl, Edit&, void ); DECL_LINK( OptClickHdl_Impl, Button*, void ); DECL_LINK( TimeHdl_Impl, Timer *, void); - void EditHdl_Impl(Edit*); - void OptHdl_Impl(void*); + void EditHdl_Impl(Edit const *); + void OptHdl_Impl(void const *); }; #endif diff --git a/cui/source/inc/optdict.hxx b/cui/source/inc/optdict.hxx index c4f4905442b9..fb8cd6deb364 100644 --- a/cui/source/inc/optdict.hxx +++ b/cui/source/inc/optdict.hxx @@ -125,14 +125,14 @@ private: DECL_LINK(NewDelButtonHdl, Button*, void); DECL_LINK(NewDelActionHdl, SvxDictEdit&, bool); DECL_LINK(ModifyHdl, Edit&, void); - bool NewDelHdl(void*); + bool NewDelHdl(void const *); void ShowWords_Impl( sal_uInt16 nId ); void SetLanguage_Impl( LanguageType nLanguage ); bool IsDicReadonly_Impl() const { return bDicIsReadonly; } void SetDicReadonly_Impl( css::uno::Reference< - css::linguistic2::XDictionary > &xDic ); + css::linguistic2::XDictionary > const &xDic ); void RemoveDictEntry(SvTreeListEntry* pEntry); sal_uLong GetLBInsertPos(const OUString &rDicWord); diff --git a/cui/source/inc/optlingu.hxx b/cui/source/inc/optlingu.hxx index e192d36f1c31..608091108aa6 100644 --- a/cui/source/inc/optlingu.hxx +++ b/cui/source/inc/optlingu.hxx @@ -81,7 +81,7 @@ class SvxEditModulesDlg : public ModalDialog DECL_LINK( LangSelectListBoxHdl_Impl, ListBox&, void ); DECL_LINK( BoxCheckButtonHdl_Impl2, SvLBoxButtonData*, void ); DECL_LINK( BoxCheckButtonHdl_Impl, SvTreeListBox*, void ); - void LangSelectHdl_Impl(ListBox*); + void LangSelectHdl_Impl(ListBox const *); public: SvxEditModulesDlg(vcl::Window* pParent, SvxLinguData_Impl& rData); diff --git a/cui/source/inc/scriptdlg.hxx b/cui/source/inc/scriptdlg.hxx index 0fdc0fd1e202..6cdcde954fa2 100644 --- a/cui/source/inc/scriptdlg.hxx +++ b/cui/source/inc/scriptdlg.hxx @@ -55,10 +55,10 @@ private: OUString m_sProdMacros; static css::uno::Reference< css::script::browse::XBrowseNode > - getLangNodeFromRootNode( css::uno::Reference< css::script::browse::XBrowseNode >& root, OUString& language ); + getLangNodeFromRootNode( css::uno::Reference< css::script::browse::XBrowseNode > const & root, OUString const & language ); static void delUserData( SvTreeListEntry* pEntry ); - static css::uno::Reference< css::uno::XInterface > getDocumentModel( css::uno::Reference< css::uno::XComponentContext >& xCtx, OUString& docName ); + static css::uno::Reference< css::uno::XInterface > getDocumentModel( css::uno::Reference< css::uno::XComponentContext > const & xCtx, OUString const & docName ); protected: virtual void RequestingChildren( SvTreeListEntry* pParent ) override; @@ -67,7 +67,7 @@ protected: public: void Init( const OUString& language ); void RequestSubEntries( SvTreeListEntry* pRootEntry, - css::uno::Reference< css::script::browse::XBrowseNode >& node, + css::uno::Reference< css::script::browse::XBrowseNode > const & node, css::uno::Reference< css::frame::XModel>& model ); SFTreeListBox(vcl::Window* pParent); virtual ~SFTreeListBox() override; @@ -151,16 +151,16 @@ protected: DECL_LINK( ScriptSelectHdl, SvTreeListBox *, void ); DECL_LINK( ButtonHdl, Button *, void ); - static bool getBoolProperty( css::uno::Reference< css::beans::XPropertySet >& xProps, OUString& propName ); - void CheckButtons( css::uno::Reference< css::script::browse::XBrowseNode >& node ); + static bool getBoolProperty( css::uno::Reference< css::beans::XPropertySet > const & xProps, OUString const & propName ); + void CheckButtons( css::uno::Reference< css::script::browse::XBrowseNode > const & node ); void createEntry( SvTreeListEntry* pEntry ); void renameEntry( SvTreeListEntry* pEntry ); void deleteEntry( SvTreeListEntry* pEntry ); static css::uno::Reference< css::script::browse::XBrowseNode > - getBrowseNode( SvTreeListEntry* pEntry ); - static css::uno::Reference< css::frame::XModel > getModel( SvTreeListEntry* pEntry ); + getBrowseNode( SvTreeListEntry const * pEntry ); + static css::uno::Reference< css::frame::XModel > getModel( SvTreeListEntry const * pEntry ); OUString getListOfChildren( const css::uno::Reference< css::script::browse::XBrowseNode >& node, int depth ); void StoreCurrentSelection(); void RestorePreviousSelection(); diff --git a/cui/source/inc/sdrcelldlg.hxx b/cui/source/inc/sdrcelldlg.hxx index f5939979b96d..f5976be5d7f6 100644 --- a/cui/source/inc/sdrcelldlg.hxx +++ b/cui/source/inc/sdrcelldlg.hxx @@ -39,7 +39,7 @@ private: sal_uInt16 m_nBorderPageId; public: - SvxFormatCellsDialog( vcl::Window* pParent, const SfxItemSet* pAttr, SdrModel* pModel ); + SvxFormatCellsDialog( vcl::Window* pParent, const SfxItemSet* pAttr, SdrModel const * pModel ); virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) override; diff --git a/cui/source/inc/swpossizetabpage.hxx b/cui/source/inc/swpossizetabpage.hxx index ff83afe71892..ed4b555c583a 100644 --- a/cui/source/inc/swpossizetabpage.hxx +++ b/cui/source/inc/swpossizetabpage.hxx @@ -107,9 +107,9 @@ class SvxSwPosSizeTabPage : public SfxTabPage void InitPos(RndStdIds nAnchorType, sal_uInt16 nH, sal_uInt16 nHRel, sal_uInt16 nV, sal_uInt16 nVRel, long nX, long nY); - static sal_uInt16 GetMapPos(FrmMap *pMap, ListBox &rAlignLB); - static short GetAlignment(FrmMap *pMap, sal_uInt16 nMapPos, ListBox &rAlignLB, ListBox &rRelationLB); - static short GetRelation(FrmMap *pMap, ListBox &rRelationLB); + static sal_uInt16 GetMapPos(FrmMap *pMap, ListBox const &rAlignLB); + static short GetAlignment(FrmMap *pMap, sal_uInt16 nMapPos, ListBox &rAlignLB, ListBox const &rRelationLB); + static short GetRelation(FrmMap *pMap, ListBox const &rRelationLB); RndStdIds GetAnchorType(bool* pbHasChanged = nullptr); void FillRelLB(FrmMap *pMap, sal_uInt16 nLBSelPos, sal_uInt16 nAlign, sal_uInt16 nRel, ListBox &rLB, FixedText &rFT); sal_uInt16 FillPosLB(FrmMap *pMap, sal_uInt16 nAlign, const sal_uInt16 _nRel, ListBox &rLB); |