Kaydet (Commit) c0c40e35 authored tarafından Caolán McNamara's avatar Caolán McNamara

cppcheck: should be passed by reference

Change-Id: I3d606615769f70ed29884e4c83164ccf15478132
üst e724553b
...@@ -19,7 +19,7 @@ UnhandledToken::UnhandledToken( ...@@ -19,7 +19,7 @@ UnhandledToken::UnhandledToken(
formula::FormulaToken* t, const char* m, const std::string& fn, int ln ) : formula::FormulaToken* t, const char* m, const std::string& fn, int ln ) :
mToken(t), mMessage(m), mFile(fn), mLineNumber(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) mFunction(function), mError(error), mFile(file), mLineNumber(line)
{ {
// Not sure if this SAL_INFO() is useful; the place in // Not sure if this SAL_INFO() is useful; the place in
......
...@@ -44,7 +44,7 @@ public: ...@@ -44,7 +44,7 @@ public:
class OpenCLError class OpenCLError
{ {
public: 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; std::string mFunction;
cl_int mError; cl_int mError;
......
...@@ -79,7 +79,7 @@ namespace ...@@ -79,7 +79,7 @@ namespace
{ {
static void lcl_sendPartialGETRequest( bool &bError, static void lcl_sendPartialGETRequest( bool &bError,
DAVException &aLastException, DAVException &aLastException,
const std::vector< rtl::OUString > aProps, const std::vector< rtl::OUString >& rProps,
std::vector< rtl::OUString > &aHeaderNames, std::vector< rtl::OUString > &aHeaderNames,
const boost::scoped_ptr< DAVResourceAccess > &xResAccess, const boost::scoped_ptr< DAVResourceAccess > &xResAccess,
boost::scoped_ptr< ContentProperties > &xProps, boost::scoped_ptr< ContentProperties > &xProps,
...@@ -175,7 +175,7 @@ static void lcl_sendPartialGETRequest( bool &bError, ...@@ -175,7 +175,7 @@ static void lcl_sendPartialGETRequest( bool &bError,
if ( xProps.get() ) if ( xProps.get() )
xProps->addProperties( xProps->addProperties(
aProps, rProps,
ContentProperties( aResource ) ); ContentProperties( aResource ) );
else else
xProps.reset ( new ContentProperties( aResource ) ); xProps.reset ( new ContentProperties( aResource ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment