summaryrefslogtreecommitdiff
path: root/opencl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-06-08 17:14:34 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-06-08 17:14:34 +0200
commit4d49c9601c9b3e26a336e08e057d299895683480 (patch)
tree469e3c18c2167db45cffec0a21a99abda8406c54 /opencl
parent46c7ecf760bbea6541507c319e8e722f9b4ec712 (diff)
Let loplugin:passstuffbyref also look at fn defn not preceded by any decl
Change-Id: I752bc96d2d521d790e919283cabb14b6526626f4
Diffstat (limited to 'opencl')
-rw-r--r--opencl/inc/opencl_device_selection.h4
-rw-r--r--opencl/source/opencl_device.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/opencl/inc/opencl_device_selection.h b/opencl/inc/opencl_device_selection.h
index d49974cf848a..45e9f5b397d3 100644
--- a/opencl/inc/opencl_device_selection.h
+++ b/opencl/inc/opencl_device_selection.h
@@ -81,7 +81,7 @@ struct ds_profile
std::vector<ds_device> devices;
OString version;
- ds_profile(OString& inVersion)
+ ds_profile(OString const & inVersion)
: version(inVersion)
{}
};
@@ -125,7 +125,7 @@ inline bool getDeviceInfoBool(cl_device_id aDeviceId, cl_device_info aDeviceInfo
return bCLBool == CL_TRUE;
}
-inline ds_status initDSProfile(std::unique_ptr<ds_profile>& rProfile, OString rVersion)
+inline ds_status initDSProfile(std::unique_ptr<ds_profile>& rProfile, OString const & rVersion)
{
int numDevices;
cl_uint numPlatforms;
diff --git a/opencl/source/opencl_device.cxx b/opencl/source/opencl_device.cxx
index a653ac71016c..0a0d28ee4200 100644
--- a/opencl/source/opencl_device.cxx
+++ b/opencl/source/opencl_device.cxx
@@ -465,7 +465,7 @@ class LogWriter
private:
SvFileStream maStream;
public:
- explicit LogWriter(OUString aFileName)
+ explicit LogWriter(OUString const & aFileName)
: maStream(aFileName, StreamMode::WRITE)
{}
@@ -495,7 +495,7 @@ public:
};
-void writeDevicesLog(std::unique_ptr<ds_profile>& rProfile, OUString sProfilePath, int nSelectedIndex)
+void writeDevicesLog(std::unique_ptr<ds_profile>& rProfile, OUString const & sProfilePath, int nSelectedIndex)
{
OUString aCacheFile(sProfilePath + "opencl_devices.log");
LogWriter aWriter(aCacheFile);