summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-14 10:20:52 +0200
committerNoel Grandin <noel@peralex.com>2016-04-14 10:24:47 +0200
commitb8eb2946511ce617323b13dffe2b1d9704e0be60 (patch)
treed5aa4f91e75d654a1cdfcd75f26dd4b813a73ff7 /extensions
parentd8644c8edb405abd9d71e62e43e898c1d2a28fd2 (diff)
loplugin:passstuffbyref in various
Change-Id: I80070c83204e531c2f599f8a56193d6ffe0e5022
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/bibliography/datman.hxx4
-rw-r--r--extensions/source/bibliography/general.hxx2
-rw-r--r--extensions/source/bibliography/toolbar.hxx2
-rw-r--r--extensions/source/dbpilots/controlwizard.hxx2
-rw-r--r--extensions/source/logging/loghandler.hxx2
-rw-r--r--extensions/source/propctrlr/commoncontrol.hxx2
6 files changed, 7 insertions, 7 deletions
diff --git a/extensions/source/bibliography/datman.hxx b/extensions/source/bibliography/datman.hxx
index 782cdc810e0a..66728a735ef1 100644
--- a/extensions/source/bibliography/datman.hxx
+++ b/extensions/source/bibliography/datman.hxx
@@ -138,10 +138,10 @@ public:
css::uno::Sequence< OUString> getDataSources();
- OUString getActiveDataSource() {return aDataSourceURL;}
+ const OUString& getActiveDataSource() {return aDataSourceURL;}
void setActiveDataSource(const OUString& rURL);
- OUString getActiveDataTable() { return aActiveDataTable;}
+ const OUString& getActiveDataTable() { return aActiveDataTable;}
void setActiveDataTable(const OUString& rTable);
void setFilter(const OUString& rQuery);
diff --git a/extensions/source/bibliography/general.hxx b/extensions/source/bibliography/general.hxx
index 5d2c0ab033b5..ed2047d7823e 100644
--- a/extensions/source/bibliography/general.hxx
+++ b/extensions/source/bibliography/general.hxx
@@ -161,7 +161,7 @@ public:
virtual bool HandleShortCutKey( const KeyEvent& rKeyEvent ) override; // returns true, if key was handled
- inline rtl::Reference<BibGeneralPageFocusListener> GetFocusListener() { return mxBibGeneralPageFocusListener; }
+ const rtl::Reference<BibGeneralPageFocusListener>& GetFocusListener() { return mxBibGeneralPageFocusListener; }
void focusGained(const css::awt::FocusEvent& rEvent) throw( css::uno::RuntimeException, std::exception );
void focusLost(const css::awt::FocusEvent& rEvent) throw( css::uno::RuntimeException, std::exception );
diff --git a/extensions/source/bibliography/toolbar.hxx b/extensions/source/bibliography/toolbar.hxx
index 1b7187aa11c7..9743e2848cd5 100644
--- a/extensions/source/bibliography/toolbar.hxx
+++ b/extensions/source/bibliography/toolbar.hxx
@@ -51,7 +51,7 @@ public:
BibToolBarListener(BibToolBar *pTB, const OUString& aStr, sal_uInt16 nId);
virtual ~BibToolBarListener();
- OUString GetCommand() const { return aCommand;}
+ const OUString& GetCommand() const { return aCommand;}
// css::lang::XEventListener
// we do not hold References to dispatches, so there is nothing to do on disposal
diff --git a/extensions/source/dbpilots/controlwizard.hxx b/extensions/source/dbpilots/controlwizard.hxx
index 3f2e44daa090..b445dbf96251 100644
--- a/extensions/source/dbpilots/controlwizard.hxx
+++ b/extensions/source/dbpilots/controlwizard.hxx
@@ -107,7 +107,7 @@ namespace dbp
bool travelNext() { return OControlWizard_Base::travelNext(); }
public:
- css::uno::Reference< css::uno::XComponentContext >
+ const css::uno::Reference< css::uno::XComponentContext >&
getComponentContext() const { return m_xContext; }
const OControlWizardContext& getContext() const { return m_aContext; }
diff --git a/extensions/source/logging/loghandler.hxx b/extensions/source/logging/loghandler.hxx
index c87d50504a24..d41b80b4c69a 100644
--- a/extensions/source/logging/loghandler.hxx
+++ b/extensions/source/logging/loghandler.hxx
@@ -65,7 +65,7 @@ namespace logging
inline rtl_TextEncoding
getTextEncoding() const { return m_eEncoding; }
- inline css::uno::Reference< css::logging::XLogFormatter >
+ const css::uno::Reference< css::logging::XLogFormatter >&
getFormatter() const { return m_xFormatter; }
inline void
setFormatter( const css::uno::Reference< css::logging::XLogFormatter >& _rxFormatter )
diff --git a/extensions/source/propctrlr/commoncontrol.hxx b/extensions/source/propctrlr/commoncontrol.hxx
index 5fe2e994074a..4b1612795ed4 100644
--- a/extensions/source/propctrlr/commoncontrol.hxx
+++ b/extensions/source/propctrlr/commoncontrol.hxx
@@ -74,7 +74,7 @@ namespace pcr
// XPropertyControl
::sal_Int16 SAL_CALL getControlType() throw (css::uno::RuntimeException) { return m_nControlType; }
- css::uno::Reference< css::inspection::XPropertyControlContext > SAL_CALL getControlContext() throw (css::uno::RuntimeException) { return m_xContext; }
+ const css::uno::Reference< css::inspection::XPropertyControlContext >& SAL_CALL getControlContext() throw (css::uno::RuntimeException) { return m_xContext; }
void SAL_CALL setControlContext( const css::uno::Reference< css::inspection::XPropertyControlContext >& _controlcontext ) throw (css::uno::RuntimeException);
bool SAL_CALL isModified( ) throw (css::uno::RuntimeException) { return m_bModified; }
void SAL_CALL notifyModifiedValue( ) throw (css::uno::RuntimeException);