summaryrefslogtreecommitdiff
path: root/opencl/inc/opencl_device_selection.h
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/inc/opencl_device_selection.h
parent46c7ecf760bbea6541507c319e8e722f9b4ec712 (diff)
Let loplugin:passstuffbyref also look at fn defn not preceded by any decl
Change-Id: I752bc96d2d521d790e919283cabb14b6526626f4
Diffstat (limited to 'opencl/inc/opencl_device_selection.h')
-rw-r--r--opencl/inc/opencl_device_selection.h4
1 files changed, 2 insertions, 2 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;