summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-04-07 16:33:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-04-07 16:34:42 +0100
commitc0c40e35948ce41754676bc3b6da358c3e9c18ed (patch)
tree60e7776112ca3a150e6621189894dae9374fc1bc /ucb
parente724553b22f7b70ebdc466921d2f3853a30d142d (diff)
cppcheck: should be passed by reference
Change-Id: I3d606615769f70ed29884e4c83164ccf15478132
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav/webdavcontent.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/ucb/source/ucp/webdav/webdavcontent.cxx b/ucb/source/ucp/webdav/webdavcontent.cxx
index 222d0aa9119a..70f84047aa7c 100644
--- a/ucb/source/ucp/webdav/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav/webdavcontent.cxx
@@ -79,7 +79,7 @@ namespace
{
static void lcl_sendPartialGETRequest( bool &bError,
DAVException &aLastException,
- const std::vector< rtl::OUString > aProps,
+ const std::vector< rtl::OUString >& rProps,
std::vector< rtl::OUString > &aHeaderNames,
const boost::scoped_ptr< DAVResourceAccess > &xResAccess,
boost::scoped_ptr< ContentProperties > &xProps,
@@ -175,7 +175,7 @@ static void lcl_sendPartialGETRequest( bool &bError,
if ( xProps.get() )
xProps->addProperties(
- aProps,
+ rProps,
ContentProperties( aResource ) );
else
xProps.reset ( new ContentProperties( aResource ) );