From 8511ee5cd11a5143a4476c0152f0ede0f2b6b87e Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Sun, 4 Jun 2017 13:43:12 +0200 Subject: 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 Reviewed-by: Noel Grandin --- opencl/inc/opencl_device_selection.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opencl/inc') 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& rProfile, OString co unsigned int next; unsigned int i; - rProfile = std::unique_ptr(new ds_profile(rVersion)); + rProfile.reset(new ds_profile(rVersion)); clGetPlatformIDs(0, nullptr, &numPlatforms); if (numPlatforms != 0) -- cgit