summaryrefslogtreecommitdiff
path: root/include/unotest
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-13 13:34:26 +0200
committerNoel Grandin <noel@peralex.com>2016-04-14 09:21:39 +0200
commit1f83c3d560ca7224e81c85b119ef580682ecf876 (patch)
tree55cb30caf3c3bd4e17917fe941b6aba656151812 /include/unotest
parent00240e54ed826618e08a0ca2b94fa7caac8f4e1a (diff)
loplugin:passstuffbyref in unotest
Change-Id: Icfd516f9fab9c6af6898b1880e51f747f4e25793
Diffstat (limited to 'include/unotest')
-rw-r--r--include/unotest/bootstrapfixturebase.hxx4
-rw-r--r--include/unotest/directories.hxx4
-rw-r--r--include/unotest/officeconnection.hxx2
3 files changed, 5 insertions, 5 deletions
diff --git a/include/unotest/bootstrapfixturebase.hxx b/include/unotest/bootstrapfixturebase.hxx
index 8b2f80978847..d3962b29b2f7 100644
--- a/include/unotest/bootstrapfixturebase.hxx
+++ b/include/unotest/bootstrapfixturebase.hxx
@@ -43,9 +43,9 @@ public:
BootstrapFixtureBase();
virtual ~BootstrapFixtureBase();
- css::uno::Reference<css::uno::XComponentContext>
+ const css::uno::Reference<css::uno::XComponentContext>&
getComponentContext() { return m_xContext; }
- css::uno::Reference<css::lang::XMultiServiceFactory>
+ const css::uno::Reference<css::lang::XMultiServiceFactory>&
getMultiServiceFactory() { return m_xSFactory; }
virtual void setUp() override;
diff --git a/include/unotest/directories.hxx b/include/unotest/directories.hxx
index a658d187a46d..3e44558a26ca 100644
--- a/include/unotest/directories.hxx
+++ b/include/unotest/directories.hxx
@@ -27,8 +27,8 @@ private:
public:
Directories();
- OUString getSrcRootURL() { return m_aSrcRootURL; }
- OUString getSrcRootPath() { return m_aSrcRootPath; }
+ const OUString& getSrcRootURL() { return m_aSrcRootURL; }
+ const OUString& getSrcRootPath() { return m_aSrcRootPath; }
// return a URL to a given c-str path from the source directory
OUString getURLFromSrc( const char *pPath );
diff --git a/include/unotest/officeconnection.hxx b/include/unotest/officeconnection.hxx
index e23e93cd3d51..fbf85b6931d1 100644
--- a/include/unotest/officeconnection.hxx
+++ b/include/unotest/officeconnection.hxx
@@ -46,7 +46,7 @@ public:
void tearDown();
- css::uno::Reference< css::uno::XComponentContext >
+ const css::uno::Reference< css::uno::XComponentContext >&
getComponentContext() const { return context_;}
// Must not be called before setUp or after tearDown: