diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-04-07 16:33:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-04-07 16:34:42 +0100 |
commit | c0c40e35948ce41754676bc3b6da358c3e9c18ed (patch) | |
tree | 60e7776112ca3a150e6621189894dae9374fc1bc /sc | |
parent | e724553b22f7b70ebdc466921d2f3853a30d142d (diff) |
cppcheck: should be passed by reference
Change-Id: I3d606615769f70ed29884e4c83164ccf15478132
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/opencl/opbase.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/opencl/opbase.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/opencl/opbase.cxx b/sc/source/core/opencl/opbase.cxx index 638ddcbba2d6..b2a77a438a1d 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 0337541424d4..dcb6c50bbe49 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; |