summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-13 15:39:18 +0200
committerNoel Grandin <noel@peralex.com>2016-04-14 09:21:41 +0200
commitf6ea0b2eb44073baf1445dc8e62fc8a245e5d378 (patch)
tree1e7302abb6bb24fe1f3d43ce9698142bc61f6107 /ucb
parenteb1603cb5383be7e25f35053dd64f044ead90099 (diff)
loplugin:passstuffbyref in ucb
Change-Id: I4ba18c767c67c9c8d23aac3f8de728b7a229804d
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/core/providermap.hxx2
-rw-r--r--ucb/source/inc/regexpmap.hxx2
-rw-r--r--ucb/source/sorter/sortresult.hxx2
-rw-r--r--ucb/source/ucp/cmis/auth_provider.hxx2
-rw-r--r--ucb/source/ucp/file/filinsreq.hxx2
-rw-r--r--ucb/source/ucp/file/filtask.hxx2
-rw-r--r--ucb/source/ucp/ftp/ftpurl.hxx6
-rw-r--r--ucb/source/ucp/tdoc/tdoc_stgelems.hxx2
-rw-r--r--ucb/source/ucp/webdav-neon/DAVResourceAccess.hxx2
-rw-r--r--ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx2
10 files changed, 12 insertions, 12 deletions
diff --git a/ucb/source/core/providermap.hxx b/ucb/source/core/providermap.hxx
index 72800a5b3513..b7a242aca0f2 100644
--- a/ucb/source/core/providermap.hxx
+++ b/ucb/source/core/providermap.hxx
@@ -44,7 +44,7 @@ public:
const css::uno::Reference< css::ucb::XContentProvider >& xProvider )
: m_xProvider( xProvider ) {}
- css::uno::Reference< css::ucb::XContentProvider > getProvider() const
+ const css::uno::Reference< css::ucb::XContentProvider >& getProvider() const
{ return m_xProvider; }
inline css::uno::Reference< css::ucb::XContentProvider > getResolvedProvider() const;
};
diff --git a/ucb/source/inc/regexpmap.hxx b/ucb/source/inc/regexpmap.hxx
index 09244e6d89b2..994d896b875c 100644
--- a/ucb/source/inc/regexpmap.hxx
+++ b/ucb/source/inc/regexpmap.hxx
@@ -43,7 +43,7 @@ public:
Val * pTheValue):
m_aRegexp(rTheRegexp), m_pValue(pTheValue) {}
- OUString getRegexp() const { return m_aRegexp; }
+ const OUString& getRegexp() const { return m_aRegexp; }
Val const & getValue() const { return *m_pValue; }
diff --git a/ucb/source/sorter/sortresult.hxx b/ucb/source/sorter/sortresult.hxx
index ab16c45bb604..e2461f44b568 100644
--- a/ucb/source/sorter/sortresult.hxx
+++ b/ucb/source/sorter/sortresult.hxx
@@ -165,7 +165,7 @@ public:
const SortedEntryList& GetS2OList() const { return maS2O; }
const SimpleList& GetO2SList() const { return maO2S; }
- css::uno::Reference < css::sdbc::XResultSet > GetResultSet() const { return mxOriginal; }
+ const css::uno::Reference < css::sdbc::XResultSet >& GetResultSet() const { return mxOriginal; }
SortInfo* GetSortInfo() const { return mpSortInfo; }
sal_IntPtr GetCount() const { return mnCount; }
diff --git a/ucb/source/ucp/cmis/auth_provider.hxx b/ucb/source/ucp/cmis/auth_provider.hxx
index 1c521d52d8e8..977254a8877c 100644
--- a/ucb/source/ucp/cmis/auth_provider.hxx
+++ b/ucb/source/ucp/cmis/auth_provider.hxx
@@ -36,7 +36,7 @@ namespace cmis
static void setXEnv( const css::uno::Reference< css::ucb::XCommandEnvironment>& xEnv ) { sm_xEnv = xEnv; }
- static css::uno::Reference< css::ucb::XCommandEnvironment> getXEnv( ) { return sm_xEnv; }
+ static const css::uno::Reference< css::ucb::XCommandEnvironment>& getXEnv( ) { return sm_xEnv; }
};
}
diff --git a/ucb/source/ucp/file/filinsreq.hxx b/ucb/source/ucp/file/filinsreq.hxx
index 6d2196742d74..a39b32ae7787 100644
--- a/ucb/source/ucp/file/filinsreq.hxx
+++ b/ucb/source/ucp/file/filinsreq.hxx
@@ -57,7 +57,7 @@ class XInteractionSupplyNameImpl : public cppu::WeakImplHelper<
m_aNewName = Name;
}
- OUString getName() const
+ const OUString& getName() const
{
return m_aNewName;
}
diff --git a/ucb/source/ucp/file/filtask.hxx b/ucb/source/ucp/file/filtask.hxx
index 3bb6e2661aa2..9af0e04eaaa2 100644
--- a/ucb/source/ucp/file/filtask.hxx
+++ b/ucb/source/ucp/file/filtask.hxx
@@ -119,7 +119,7 @@ namespace fileaccess
return m_xInteractionHandler;
}
- css::uno::Reference< css::ucb::XCommandEnvironment > SAL_CALL
+ const css::uno::Reference< css::ucb::XCommandEnvironment >& SAL_CALL
getCommandEnvironment()
{
return m_xCommandEnvironment;
diff --git a/ucb/source/ucp/ftp/ftpurl.hxx b/ucb/source/ucp/ftp/ftpurl.hxx
index 7a1271442c2a..f112bfd9c39d 100644
--- a/ucb/source/ucp/ftp/ftpurl.hxx
+++ b/ucb/source/ucp/ftp/ftpurl.hxx
@@ -94,11 +94,11 @@ namespace ftp {
~FTPURL();
- OUString host() const { return m_aHost; }
+ const OUString& host() const { return m_aHost; }
- OUString port() const { return m_aPort; }
+ const OUString& port() const { return m_aPort; }
- OUString username() const { return m_aUsername; }
+ const OUString& username() const { return m_aUsername; }
/** This returns the URL, but cleaned from
* unnessary ellipses.
diff --git a/ucb/source/ucp/tdoc/tdoc_stgelems.hxx b/ucb/source/ucp/tdoc/tdoc_stgelems.hxx
index 2e685032dcd6..d71ccf4384b4 100644
--- a/ucb/source/ucp/tdoc/tdoc_stgelems.hxx
+++ b/ucb/source/ucp/tdoc/tdoc_stgelems.hxx
@@ -53,7 +53,7 @@ public:
bool isParentARootStorage() const
{ return m_bParentIsRootStorage; }
- css::uno::Reference< css::embed::XStorage >
+ const css::uno::Reference< css::embed::XStorage >&
getParentStorage() const
{ return m_xParentStorage; }
void setParentStorage( const css::uno::Reference< css::embed::XStorage > & xStg )
diff --git a/ucb/source/ucp/webdav-neon/DAVResourceAccess.hxx b/ucb/source/ucp/webdav-neon/DAVResourceAccess.hxx
index c512199a800b..2b36a1322145 100644
--- a/ucb/source/ucp/webdav-neon/DAVResourceAccess.hxx
+++ b/ucb/source/ucp/webdav-neon/DAVResourceAccess.hxx
@@ -82,7 +82,7 @@ public:
const OUString & getURL() const { return m_aURL; }
- rtl::Reference< DAVSessionFactory > getSessionFactory() const
+ const rtl::Reference< DAVSessionFactory >& getSessionFactory() const
{ return m_xSessionFactory; }
// DAV methods
diff --git a/ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx b/ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx
index 1eb0eef6993d..7251826a7331 100644
--- a/ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx
+++ b/ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx
@@ -67,7 +67,7 @@ public:
const ::uno::Reference< ::uno::XComponentContext >& rxContext )
throw( DAVException );
- ::uno::Reference< ::uno::XComponentContext > getComponentContext() { return m_xContext; }
+ const ::uno::Reference< ::uno::XComponentContext >& getComponentContext() { return m_xContext; }
private:
typedef std::map< OUString, DAVSession * > Map;