summaryrefslogtreecommitdiff
path: root/opencl
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-06-04 13:43:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-04 20:42:45 +0200
commit8511ee5cd11a5143a4476c0152f0ede0f2b6b87e (patch)
treec91b057fd2f08875a04d45c0cb5c2fd8f029a04f /opencl
parentc4ac732d8132b36b3817e65d2651599ebe16a7f2 (diff)
no need to construct unique_ptr here
and std::move is not needed when returning unique_ptr Change-Id: I9b4d2d6b8a41b570a9bd99e44a743ff161b78c59 Reviewed-on: https://gerrit.libreoffice.org/38385 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'opencl')
-rw-r--r--opencl/inc/opencl_device_selection.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/opencl/inc/opencl_device_selection.h b/opencl/inc/opencl_device_selection.h
index 3a47ff6d8d5e..79f88894c378 100644
--- a/opencl/inc/opencl_device_selection.h
+++ b/opencl/inc/opencl_device_selection.h
@@ -148,7 +148,7 @@ inline ds_status initDSProfile(std::unique_ptr<ds_profile>& rProfile, OString co
unsigned int next;
unsigned int i;
- rProfile = std::unique_ptr<ds_profile>(new ds_profile(rVersion));
+ rProfile.reset(new ds_profile(rVersion));
clGetPlatformIDs(0, nullptr, &numPlatforms);
if (numPlatforms != 0)