summaryrefslogtreecommitdiff
path: root/opencl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-07-30 17:52:53 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-07-31 12:56:42 +0200
commitb2ea362361676ad13647880158803efc4dcbcf15 (patch)
treec7363b15b409fd1a867930ed2ae6866cf8f666c2 /opencl
parentde1d80075ca88ad51bf4c99d1a4805162d73491a (diff)
Improved loplugin:stringconstant (now that GCC 7 supports it): opencl
Change-Id: I8e06da641db39d529426064e6c3412bc75a67fb2 Reviewed-on: https://gerrit.libreoffice.org/76661 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'opencl')
-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 2acb67047c4e..9388f5607fcb 100644
--- a/opencl/inc/opencl_device_selection.h
+++ b/opencl/inc/opencl_device_selection.h
@@ -97,14 +97,14 @@ inline OString getPlatformInfoString(cl_platform_id aPlatformId, cl_platform_inf
{
std::vector<char> temporary(2048, 0);
clGetPlatformInfo(aPlatformId, aPlatformInfo, temporary.size(), temporary.data(), nullptr);
- return OString(temporary.data());
+ return temporary.data();
}
inline OString getDeviceInfoString(cl_device_id aDeviceId, cl_device_info aDeviceInfo)
{
std::vector<char> temporary(2048, 0);
clGetDeviceInfo(aDeviceId, aDeviceInfo, temporary.size(), temporary.data(), nullptr);
- return OString(temporary.data());
+ return temporary.data();
}
inline OString getDeviceType(cl_device_id aDeviceId)