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