[Libreoffice-commits] core.git: sc/source ucb/source

Caolán McNamara caolanm at redhat.com
Tue Apr 7 08:35:07 PDT 2015


 sc/source/core/opencl/opbase.cxx        |    2 +-
 sc/source/core/opencl/opbase.hxx        |    2 +-
 ucb/source/ucp/webdav/webdavcontent.cxx |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit c0c40e35948ce41754676bc3b6da358c3e9c18ed
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Apr 7 16:33:55 2015 +0100

    cppcheck: should be passed by reference
    
    Change-Id: I3d606615769f70ed29884e4c83164ccf15478132

diff --git a/sc/source/core/opencl/opbase.cxx b/sc/source/core/opencl/opbase.cxx
index 638ddcb..b2a77a4 100644
--- a/sc/source/core/opencl/opbase.cxx
+++ b/sc/source/core/opencl/opbase.cxx
@@ -19,7 +19,7 @@ UnhandledToken::UnhandledToken(
     formula::FormulaToken* t, const char* m, const std::string& fn, int ln ) :
     mToken(t), mMessage(m), mFile(fn), mLineNumber(ln) {}
 
-OpenCLError::OpenCLError( const std::string function, cl_int error, const std::string& file, int line ) :
+OpenCLError::OpenCLError( const std::string& function, cl_int error, const std::string& file, int line ) :
     mFunction(function), mError(error), mFile(file), mLineNumber(line)
 {
     // Not sure if this SAL_INFO() is useful; the place in
diff --git a/sc/source/core/opencl/opbase.hxx b/sc/source/core/opencl/opbase.hxx
index 0337541..dcb6c50 100644
--- a/sc/source/core/opencl/opbase.hxx
+++ b/sc/source/core/opencl/opbase.hxx
@@ -44,7 +44,7 @@ public:
 class OpenCLError
 {
 public:
-    OpenCLError( const std::string function, cl_int error, const std::string& file, int line );
+    OpenCLError( const std::string& function, cl_int error, const std::string& file, int line );
 
     std::string mFunction;
     cl_int mError;
diff --git a/ucb/source/ucp/webdav/webdavcontent.cxx b/ucb/source/ucp/webdav/webdavcontent.cxx
index 222d0aa..70f8404 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 ) );


More information about the Libreoffice-commits mailing list