loplugin:passstuffbyref in unotest

Change-Id: Icfd516f9fab9c6af6898b1880e51f747f4e25793
This commit is contained in:
Noel Grandin
2016-04-13 13:34:26 +02:00
parent 00240e54ed
commit 1f83c3d560
3 changed files with 5 additions and 5 deletions

View File

@@ -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;

View File

@@ -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 );

View File

@@ -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: