summaryrefslogtreecommitdiff
path: root/framework/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-19 17:44:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-20 09:19:54 +0200
commit039d9b97b720d9dc735413b292382104b63014d5 (patch)
treee366b57f1bf03ded002414f52bccddf98fb94e2e /framework/inc
parentc0565f7011fa6d6b295e522c023127970ccce822 (diff)
loplugin:constparams in framework
Change-Id: Iecd19a0cbb3cc78158c17bfa064cc23bafc44b18 Reviewed-on: https://gerrit.libreoffice.org/40206 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/inc')
-rw-r--r--framework/inc/helper/vclstatusindicator.hxx2
-rw-r--r--framework/inc/uielement/comboboxtoolbarcontroller.hxx2
-rw-r--r--framework/inc/uielement/edittoolbarcontroller.hxx2
-rw-r--r--framework/inc/uielement/fontmenucontroller.hxx2
-rw-r--r--framework/inc/uielement/fontsizemenucontroller.hxx6
-rw-r--r--framework/inc/uielement/headermenucontroller.hxx2
-rw-r--r--framework/inc/uielement/langselectionmenucontroller.hxx2
-rw-r--r--framework/inc/uielement/macrosmenucontroller.hxx2
-rw-r--r--framework/inc/uielement/menubarmanager.hxx2
-rw-r--r--framework/inc/uielement/menubarmerger.hxx2
-rw-r--r--framework/inc/uielement/newmenucontroller.hxx2
-rw-r--r--framework/inc/uielement/notebookbarmenucontroller.hxx2
-rw-r--r--framework/inc/uielement/spinfieldtoolbarcontroller.hxx2
-rw-r--r--framework/inc/uielement/toolbarmanager.hxx4
-rw-r--r--framework/inc/uielement/toolbarmodemenucontroller.hxx2
-rw-r--r--framework/inc/uielement/toolbarsmenucontroller.hxx4
16 files changed, 20 insertions, 20 deletions
diff --git a/framework/inc/helper/vclstatusindicator.hxx b/framework/inc/helper/vclstatusindicator.hxx
index c9b0bff85eaa..5665b2a394ee 100644
--- a/framework/inc/helper/vclstatusindicator.hxx
+++ b/framework/inc/helper/vclstatusindicator.hxx
@@ -88,7 +88,7 @@ class VCLStatusIndicator : public ::cppu::WeakImplHelper< css::task::XStatusInd
private:
static void impl_recalcLayout(vcl::Window* pStatusBar ,
- vcl::Window* pParentWindow);
+ vcl::Window const * pParentWindow);
};
} // namespace framework
diff --git a/framework/inc/uielement/comboboxtoolbarcontroller.hxx b/framework/inc/uielement/comboboxtoolbarcontroller.hxx
index 4ffbba2af918..891e25bb05fd 100644
--- a/framework/inc/uielement/comboboxtoolbarcontroller.hxx
+++ b/framework/inc/uielement/comboboxtoolbarcontroller.hxx
@@ -52,7 +52,7 @@ class ComboboxToolbarController : public ComplexToolbarController
void Modify();
void GetFocus();
void LoseFocus();
- bool PreNotify( NotifyEvent& rNEvt );
+ bool PreNotify( NotifyEvent const & rNEvt );
protected:
virtual void executeControlCommand( const css::frame::ControlCommand& rControlCommand ) override;
diff --git a/framework/inc/uielement/edittoolbarcontroller.hxx b/framework/inc/uielement/edittoolbarcontroller.hxx
index 4674b0cf0ec3..20924416c78d 100644
--- a/framework/inc/uielement/edittoolbarcontroller.hxx
+++ b/framework/inc/uielement/edittoolbarcontroller.hxx
@@ -52,7 +52,7 @@ class EditToolbarController : public ComplexToolbarController
void Modify();
void GetFocus();
void LoseFocus();
- bool PreNotify( NotifyEvent& rNEvt );
+ bool PreNotify( NotifyEvent const & rNEvt );
protected:
virtual void executeControlCommand( const css::frame::ControlCommand& rControlCommand ) override;
diff --git a/framework/inc/uielement/fontmenucontroller.hxx b/framework/inc/uielement/fontmenucontroller.hxx
index 1a91747bc702..bbea2d450e42 100644
--- a/framework/inc/uielement/fontmenucontroller.hxx
+++ b/framework/inc/uielement/fontmenucontroller.hxx
@@ -65,7 +65,7 @@ namespace framework
private:
virtual void impl_setPopupMenu() override;
- void fillPopupMenu( const css::uno::Sequence< OUString >& rFontNameSeq, css::uno::Reference< css::awt::XPopupMenu >& rPopupMenu );
+ void fillPopupMenu( const css::uno::Sequence< OUString >& rFontNameSeq, css::uno::Reference< css::awt::XPopupMenu > const & rPopupMenu );
OUString m_aFontFamilyName;
css::uno::Reference< css::frame::XDispatch > m_xFontListDispatch;
diff --git a/framework/inc/uielement/fontsizemenucontroller.hxx b/framework/inc/uielement/fontsizemenucontroller.hxx
index 078e4935298e..2bf35223ca84 100644
--- a/framework/inc/uielement/fontsizemenucontroller.hxx
+++ b/framework/inc/uielement/fontsizemenucontroller.hxx
@@ -66,9 +66,9 @@ namespace framework
private:
virtual void impl_setPopupMenu() override;
- void setCurHeight( long nHeight, css::uno::Reference< css::awt::XPopupMenu >& rPopupMenu );
- void fillPopupMenu( css::uno::Reference< css::awt::XPopupMenu >& rPopupMenu );
- OUString retrievePrinterName( css::uno::Reference< css::frame::XFrame >& rFrame );
+ void setCurHeight( long nHeight, css::uno::Reference< css::awt::XPopupMenu > const & rPopupMenu );
+ void fillPopupMenu( css::uno::Reference< css::awt::XPopupMenu > const & rPopupMenu );
+ OUString retrievePrinterName( css::uno::Reference< css::frame::XFrame > const & rFrame );
std::unique_ptr<long[]> m_pHeightArray;
css::awt::FontDescriptor m_aFontDescriptor;
diff --git a/framework/inc/uielement/headermenucontroller.hxx b/framework/inc/uielement/headermenucontroller.hxx
index 66fcc9b347ad..ae3e85e86ccf 100644
--- a/framework/inc/uielement/headermenucontroller.hxx
+++ b/framework/inc/uielement/headermenucontroller.hxx
@@ -61,7 +61,7 @@ namespace framework
virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
private:
- void fillPopupMenu( const css::uno::Reference< css::frame::XModel >& rModel, css::uno::Reference< css::awt::XPopupMenu >& rPopupMenu );
+ void fillPopupMenu( const css::uno::Reference< css::frame::XModel >& rModel, css::uno::Reference< css::awt::XPopupMenu > const & rPopupMenu );
css::uno::Reference< css::frame::XModel > m_xModel;
bool m_bFooter;
diff --git a/framework/inc/uielement/langselectionmenucontroller.hxx b/framework/inc/uielement/langselectionmenucontroller.hxx
index 294b913cc38a..df35610cb8b8 100644
--- a/framework/inc/uielement/langselectionmenucontroller.hxx
+++ b/framework/inc/uielement/langselectionmenucontroller.hxx
@@ -89,7 +89,7 @@ namespace framework
OUString m_aGuessedTextLang;
LanguageGuessingHelper m_aLangGuessHelper;
- void fillPopupMenu( css::uno::Reference< css::awt::XPopupMenu >& rPopupMenu, const Mode rMode );
+ void fillPopupMenu( css::uno::Reference< css::awt::XPopupMenu > const & rPopupMenu, const Mode rMode );
};
}
diff --git a/framework/inc/uielement/macrosmenucontroller.hxx b/framework/inc/uielement/macrosmenucontroller.hxx
index d0893f8c5e4b..ea9a74fe5572 100644
--- a/framework/inc/uielement/macrosmenucontroller.hxx
+++ b/framework/inc/uielement/macrosmenucontroller.hxx
@@ -59,7 +59,7 @@ namespace framework
virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
private:
- void fillPopupMenu( css::uno::Reference< css::awt::XPopupMenu >& rPopupMenu );
+ void fillPopupMenu( css::uno::Reference< css::awt::XPopupMenu > const & rPopupMenu );
void addScriptItems( PopupMenu* pPopupMenu, sal_uInt16 startItemId );
};
}
diff --git a/framework/inc/uielement/menubarmanager.hxx b/framework/inc/uielement/menubarmanager.hxx
index a222c5664ba7..77cb087f4f5a 100644
--- a/framework/inc/uielement/menubarmanager.hxx
+++ b/framework/inc/uielement/menubarmanager.hxx
@@ -173,7 +173,7 @@ class MenuBarManager:
void RetrieveShortcuts( std::vector< MenuItemHandler* >& aMenuShortCuts );
void CheckAndAddMenuExtension( Menu* pMenu );
static void UpdateSpecialWindowMenu( Menu* pMenu, const css::uno::Reference< css::uno::XComponentContext >& xContext );
- static void FillMenuImages( css::uno::Reference< css::frame::XFrame >& xFrame, Menu* _pMenu, bool bShowMenuImages );
+ static void FillMenuImages( css::uno::Reference< css::frame::XFrame > const & xFrame, Menu* _pMenu, bool bShowMenuImages );
static void impl_RetrieveShortcutsFromConfiguration( const css::uno::Reference< css::ui::XAcceleratorConfiguration >& rAccelCfg,
const css::uno::Sequence< OUString >& rCommands,
std::vector< MenuItemHandler* >& aMenuShortCuts );
diff --git a/framework/inc/uielement/menubarmerger.hxx b/framework/inc/uielement/menubarmerger.hxx
index f5720da0c8b0..99370698fc38 100644
--- a/framework/inc/uielement/menubarmerger.hxx
+++ b/framework/inc/uielement/menubarmerger.hxx
@@ -63,7 +63,7 @@ namespace MenuBarMerger
std::vector< OUString >& aReferencePath );
ReferencePathInfo FindReferencePath( const std::vector< OUString >& aReferencePath, Menu* pMenu );
sal_uInt16 FindMenuItem( const OUString& rCmd,
- Menu* pMenu );
+ Menu const * pMenu );
void GetMenuEntry( const css::uno::Sequence< css::beans::PropertyValue >& rAddonMenuEntry,
AddonMenuItem& aAddonMenu );
void GetSubMenu( const css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > >& rSubMenuEntries,
diff --git a/framework/inc/uielement/newmenucontroller.hxx b/framework/inc/uielement/newmenucontroller.hxx
index 5d0cb2402f99..43b0b6910bf7 100644
--- a/framework/inc/uielement/newmenucontroller.hxx
+++ b/framework/inc/uielement/newmenucontroller.hxx
@@ -72,7 +72,7 @@ namespace framework
private:
virtual void impl_setPopupMenu() override;
- void fillPopupMenu( css::uno::Reference< css::awt::XPopupMenu >& rPopupMenu );
+ void fillPopupMenu( css::uno::Reference< css::awt::XPopupMenu > const & rPopupMenu );
void retrieveShortcutsFromConfiguration( const css::uno::Reference< css::ui::XAcceleratorConfiguration >& rAccelCfg,
const css::uno::Sequence< OUString >& rCommands,
std::vector< vcl::KeyCode >& aMenuShortCuts );
diff --git a/framework/inc/uielement/notebookbarmenucontroller.hxx b/framework/inc/uielement/notebookbarmenucontroller.hxx
index 2ebb4c626682..6d0f2b7c0a1b 100644
--- a/framework/inc/uielement/notebookbarmenucontroller.hxx
+++ b/framework/inc/uielement/notebookbarmenucontroller.hxx
@@ -76,7 +76,7 @@ namespace framework
DECL_STATIC_LINK( NotebookbarMenuController, ExecuteHdl_Impl, void*, void );
private:
- void fillPopupMenu( css::uno::Reference< css::awt::XPopupMenu >& rPopupMenu );
+ void fillPopupMenu( css::uno::Reference< css::awt::XPopupMenu > const & rPopupMenu );
css::uno::Reference< css::uno::XComponentContext > m_xContext;
};
diff --git a/framework/inc/uielement/spinfieldtoolbarcontroller.hxx b/framework/inc/uielement/spinfieldtoolbarcontroller.hxx
index cfa073fae74f..42d121971259 100644
--- a/framework/inc/uielement/spinfieldtoolbarcontroller.hxx
+++ b/framework/inc/uielement/spinfieldtoolbarcontroller.hxx
@@ -56,7 +56,7 @@ class SpinfieldToolbarController : public ComplexToolbarController
void Last();
void Modify();
void GetFocus();
- bool PreNotify( NotifyEvent& rNEvt );
+ bool PreNotify( NotifyEvent const & rNEvt );
protected:
virtual void executeControlCommand( const css::frame::ControlCommand& rControlCommand ) override;
diff --git a/framework/inc/uielement/toolbarmanager.hxx b/framework/inc/uielement/toolbarmanager.hxx
index 9821c05cace3..d5f9e11f70b4 100644
--- a/framework/inc/uielement/toolbarmanager.hxx
+++ b/framework/inc/uielement/toolbarmanager.hxx
@@ -91,7 +91,7 @@ class ToolBarManager : public ToolbarManager_Base
void CheckAndUpdateImages();
virtual void RefreshImages();
void FillToolbar( const css::uno::Reference< css::container::XIndexAccess >& rToolBarData );
- void FillOverflowToolbar( ToolBox* pParent );
+ void FillOverflowToolbar( ToolBox const * pParent );
void notifyRegisteredControllers( const OUString& aUIElementName, const OUString& aCommand );
void Destroy();
@@ -128,7 +128,7 @@ class ToolBarManager : public ToolbarManager_Base
virtual bool MenuItemAllowed( sal_uInt16 ) const;
- void AddCustomizeMenuItems(ToolBox* pToolBar);
+ void AddCustomizeMenuItems(ToolBox const * pToolBar);
void InitImageManager();
void RemoveControllers();
void CreateControllers();
diff --git a/framework/inc/uielement/toolbarmodemenucontroller.hxx b/framework/inc/uielement/toolbarmodemenucontroller.hxx
index 40ddbae29465..a6d13f13eea6 100644
--- a/framework/inc/uielement/toolbarmodemenucontroller.hxx
+++ b/framework/inc/uielement/toolbarmodemenucontroller.hxx
@@ -76,7 +76,7 @@ namespace framework
DECL_STATIC_LINK( ToolbarModeMenuController, ExecuteHdl_Impl, void*, void );
private:
- void fillPopupMenu( css::uno::Reference< css::awt::XPopupMenu >& rPopupMenu );
+ void fillPopupMenu( css::uno::Reference< css::awt::XPopupMenu > const & rPopupMenu );
css::uno::Reference< css::uno::XComponentContext > m_xContext;
};
diff --git a/framework/inc/uielement/toolbarsmenucontroller.hxx b/framework/inc/uielement/toolbarsmenucontroller.hxx
index c9a8429e479e..1745c7796259 100644
--- a/framework/inc/uielement/toolbarsmenucontroller.hxx
+++ b/framework/inc/uielement/toolbarsmenucontroller.hxx
@@ -83,10 +83,10 @@ namespace framework
DECL_STATIC_LINK( ToolbarsMenuController, ExecuteHdl_Impl, void*, void );
private:
- void fillPopupMenu( css::uno::Reference< css::awt::XPopupMenu >& rPopupMenu );
+ void fillPopupMenu( css::uno::Reference< css::awt::XPopupMenu > const & rPopupMenu );
css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > getLayoutManagerToolbars( const css::uno::Reference< css::frame::XLayoutManager >& rLayoutManager );
css::uno::Reference< css::frame::XDispatch > getDispatchFromCommandURL( const OUString& rCommandURL );
- void addCommand( css::uno::Reference< css::awt::XPopupMenu >& rPopupMenu, const OUString& rCommandURL, const OUString& aLabel );
+ void addCommand( css::uno::Reference< css::awt::XPopupMenu > const & rPopupMenu, const OUString& rCommandURL, const OUString& aLabel );
css::uno::Reference< css::uno::XComponentContext > m_xContext;
css::uno::Reference< css::container::XNameAccess > m_xPersistentWindowState;