summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-11 14:49:04 +0200
committerNoel Grandin <noel@peralex.com>2016-04-11 15:12:11 +0200
commitfb42d03b5a404ac73e24d90e094885c14c3b7584 (patch)
tree3eebcc8b525c2e67872eac3a761b18b37623c938 /include
parentb76c2ea81df92e1a863ce04e02005f58ab5ea5f9 (diff)
clang-tidy performance-unnecessary-value-param in unotools
Change-Id: Ife11111b0265da5d5a8a98766a94f3b640b357f5
Diffstat (limited to 'include')
-rw-r--r--include/unotools/ucbhelper.hxx4
-rw-r--r--include/unotools/ucbstreamhelper.hxx10
2 files changed, 7 insertions, 7 deletions
diff --git a/include/unotools/ucbhelper.hxx b/include/unotools/ucbhelper.hxx
index e7cd434316a2..6b31a6f34711 100644
--- a/include/unotools/ucbhelper.hxx
+++ b/include/unotools/ucbhelper.hxx
@@ -61,8 +61,8 @@ UNOTOOLS_DLLPUBLIC bool MakeFolder(
/// like mkdir -p
UNOTOOLS_DLLPUBLIC bool ensureFolder(
- css::uno::Reference< css::uno::XComponentContext > xCtx,
- css::uno::Reference< css::ucb::XCommandEnvironment > xEnv,
+ const css::uno::Reference< css::uno::XComponentContext >& xCtx,
+ const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv,
const OUString& rFolder, ucbhelper::Content & result) throw();
/// @return the value of the "Size" property of the given content, or zero if
diff --git a/include/unotools/ucbstreamhelper.hxx b/include/unotools/ucbstreamhelper.hxx
index 2e8308b13a3b..904e1320094a 100644
--- a/include/unotools/ucbstreamhelper.hxx
+++ b/include/unotools/ucbstreamhelper.hxx
@@ -54,13 +54,13 @@ namespace utl
public:
static SvStream* CreateStream( const OUString& rFileName, StreamMode eOpenMode );
static SvStream* CreateStream( const OUString& rFileName, StreamMode eOpenMode,
- css::uno::Reference < css::task::XInteractionHandler > );
+ const css::uno::Reference < css::task::XInteractionHandler >& );
static SvStream* CreateStream( const OUString& rFileName, StreamMode eOpenMode,
bool bFileExists );
- static SvStream* CreateStream( css::uno::Reference < css::io::XInputStream > xStream );
- static SvStream* CreateStream( css::uno::Reference < css::io::XStream > xStream );
- static SvStream* CreateStream( css::uno::Reference < css::io::XInputStream > xStream, bool bCloseStream );
- static SvStream* CreateStream( css::uno::Reference < css::io::XStream > xStream, bool bCloseStream );
+ static SvStream* CreateStream( const css::uno::Reference < css::io::XInputStream >& xStream );
+ static SvStream* CreateStream( const css::uno::Reference < css::io::XStream >& xStream );
+ static SvStream* CreateStream( const css::uno::Reference < css::io::XInputStream >& xStream, bool bCloseStream );
+ static SvStream* CreateStream( const css::uno::Reference < css::io::XStream >& xStream, bool bCloseStream );
};
}