From 4d49c9601c9b3e26a336e08e057d299895683480 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 8 Jun 2016 17:14:34 +0200 Subject: Let loplugin:passstuffbyref also look at fn defn not preceded by any decl Change-Id: I752bc96d2d521d790e919283cabb14b6526626f4 --- opencl/inc/opencl_device_selection.h | 4 ++-- opencl/source/opencl_device.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'opencl') 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 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& rProfile, OString rVersion) +inline ds_status initDSProfile(std::unique_ptr& 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& rProfile, OUString sProfilePath, int nSelectedIndex) +void writeDevicesLog(std::unique_ptr& rProfile, OUString const & sProfilePath, int nSelectedIndex) { OUString aCacheFile(sProfilePath + "opencl_devices.log"); LogWriter aWriter(aCacheFile); -- cgit