diff options
Diffstat (limited to 'opencl')
-rw-r--r-- | opencl/inc/opencl_device_selection.h | 4 | ||||
-rw-r--r-- | opencl/source/opencl_device.cxx | 4 |
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); |