summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/comphelper/logging.hxx2
-rw-r--r--include/sfx2/sidebar/SidebarController.hxx2
-rw-r--r--include/svl/itempool.hxx4
-rw-r--r--include/svx/charmap.hxx2
-rw-r--r--include/svx/svdlayer.hxx6
-rw-r--r--include/svx/unoshape.hxx2
-rw-r--r--include/vcl/menu.hxx2
-rw-r--r--include/vcl/menubtn.hxx2
8 files changed, 11 insertions, 11 deletions
diff --git a/include/comphelper/logging.hxx b/include/comphelper/logging.hxx
index e6e793c3c014..34d9f4cef5d2 100644
--- a/include/comphelper/logging.hxx
+++ b/include/comphelper/logging.hxx
@@ -124,7 +124,7 @@ namespace comphelper
impl_log(_nLogLevel, nullptr, nullptr, rMessage);
}
- const css::uno::Reference<css::logging::XLogger> getLogger();
+ const css::uno::Reference<css::logging::XLogger> & getLogger();
/** logs a given message, replacing a placeholder in the message with an argument
diff --git a/include/sfx2/sidebar/SidebarController.hxx b/include/sfx2/sidebar/SidebarController.hxx
index b4521bd4166c..d6c8d54f7e8a 100644
--- a/include/sfx2/sidebar/SidebarController.hxx
+++ b/include/sfx2/sidebar/SidebarController.hxx
@@ -162,7 +162,7 @@ public:
tools::Rectangle GetDeckDragArea() const;
- css::uno::Reference<css::frame::XFrame> getXFrame() {return mxFrame;}
+ css::uno::Reference<css::frame::XFrame> const & getXFrame() const {return mxFrame;}
sal_Int32 getMaximumWidth() { return mnMaximumSidebarWidth; }
void setMaximumWidth(sal_Int32 nMaximumWidth) { mnMaximumSidebarWidth = nMaximumWidth; }
diff --git a/include/svl/itempool.hxx b/include/svl/itempool.hxx
index 4c9052df0a13..10dbd3252c9e 100644
--- a/include/svl/itempool.hxx
+++ b/include/svl/itempool.hxx
@@ -164,8 +164,8 @@ public:
{
o3tl::sorted_vector<SfxPoolItem*>::const_iterator m_begin;
o3tl::sorted_vector<SfxPoolItem*>::const_iterator m_end;
- o3tl::sorted_vector<SfxPoolItem*>::const_iterator begin() { return m_begin; }
- o3tl::sorted_vector<SfxPoolItem*>::const_iterator end() { return m_end; }
+ o3tl::sorted_vector<SfxPoolItem*>::const_iterator const & begin() const { return m_begin; }
+ o3tl::sorted_vector<SfxPoolItem*>::const_iterator const & end() const { return m_end; }
};
const SfxPoolItem * GetItem2Default(sal_uInt16 nWhich) const;
template<class T> const T* GetItem2Default( TypedWhichId<T> nWhich ) const
diff --git a/include/svx/charmap.hxx b/include/svx/charmap.hxx
index e4db794c1d57..1db1442fa7fe 100644
--- a/include/svx/charmap.hxx
+++ b/include/svx/charmap.hxx
@@ -76,7 +76,7 @@ public:
static sal_uInt32& getSelectedChar();
void SetFont( const vcl::Font& rFont );
vcl::Font const & GetFont() const { return maFont; }
- FontCharMapRef GetFontCharMap();
+ FontCharMapRef const & GetFontCharMap();
bool isFavChar(const OUString& sTitle, const OUString& rFont);
void getFavCharacterList(); //gets both Fav char and Fav char font list
void updateFavCharacterList(const OUString& rChar, const OUString& rFont);
diff --git a/include/svx/svdlayer.hxx b/include/svx/svdlayer.hxx
index e49e079c82c9..eb8e3672aa5c 100644
--- a/include/svx/svdlayer.hxx
+++ b/include/svx/svdlayer.hxx
@@ -82,13 +82,13 @@ public:
void SetDescription(const OUString& rDesc) { maDescription = rDesc; }
const OUString& GetDescription() const { return maDescription; }
- void SetVisibleODF(const bool& rVisibleODF) { mbVisibleODF = rVisibleODF; }
+ void SetVisibleODF(bool bVisibleODF) { mbVisibleODF = bVisibleODF; }
bool IsVisibleODF() const { return mbVisibleODF; }
- void SetPrintableODF(const bool& rPrintableODF) { mbPrintableODF = rPrintableODF; }
+ void SetPrintableODF(bool bPrintableODF) { mbPrintableODF = bPrintableODF; }
bool IsPrintableODF() const { return mbPrintableODF; }
- void SetLockedODF(const bool& rLockedODF) { mbLockedODF = rLockedODF; }
+ void SetLockedODF(bool bLockedODF) { mbLockedODF = bLockedODF; }
bool IsLockedODF() const { return mbLockedODF; }
SdrLayerID GetID() const { return nID; }
diff --git a/include/svx/unoshape.hxx b/include/svx/unoshape.hxx
index 7c8b3cdc6f4d..8d522b3bcab7 100644
--- a/include/svx/unoshape.hxx
+++ b/include/svx/unoshape.hxx
@@ -259,7 +259,7 @@ public:
css::uno::Sequence< OUString > _getSupportedServiceNames();
/// @throws css::uno::RuntimeException
- css::uno::Sequence< css::uno::Type > _getTypes( );
+ css::uno::Sequence< css::uno::Type > const & _getTypes( );
void setMaster( SvxShapeMaster* pMaster );
diff --git a/include/vcl/menu.hxx b/include/vcl/menu.hxx
index a82af83f155e..76a39c813eef 100644
--- a/include/vcl/menu.hxx
+++ b/include/vcl/menu.hxx
@@ -263,7 +263,7 @@ public:
OString GetItemIdent(sal_uInt16 nItemId) const;
MenuItemType GetItemType( sal_uInt16 nPos ) const;
sal_uInt16 GetCurItemId() const { return nSelectedId;}
- OString GetCurItemIdent() const { return sSelectedIdent; }
+ OString const & GetCurItemIdent() const { return sSelectedIdent; }
void SetItemBits( sal_uInt16 nItemId, MenuItemBits nBits );
MenuItemBits GetItemBits( sal_uInt16 nItemId ) const;
diff --git a/include/vcl/menubtn.hxx b/include/vcl/menubtn.hxx
index 90d42fc607fc..f087023af6aa 100644
--- a/include/vcl/menubtn.hxx
+++ b/include/vcl/menubtn.hxx
@@ -79,7 +79,7 @@ public:
void SetPopover(Window* pWindow);
sal_uInt16 GetCurItemId() const { return mnCurItemId; }
- OString GetCurItemIdent() const { return msCurItemIdent; }
+ OString const & GetCurItemIdent() const { return msCurItemIdent; }
void SetActivateHdl( const Link<MenuButton *, void>& rLink ) { maActivateHdl = rLink; }
void SetSelectHdl( const Link<MenuButton *, void>& rLink ) { maSelectHdl = rLink; }