diff options
Diffstat (limited to 'opencl')
-rw-r--r-- | opencl/inc/opencl_device.hxx | 2 | ||||
-rw-r--r-- | opencl/source/opencl_device.cxx | 2 | ||||
-rw-r--r-- | opencl/source/openclwrapper.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/opencl/inc/opencl_device.hxx b/opencl/inc/opencl_device.hxx index 216af72de849..a42b57541365 100644 --- a/opencl/inc/opencl_device.hxx +++ b/opencl/inc/opencl_device.hxx @@ -14,7 +14,7 @@ namespace opencl { -ds_device getDeviceSelection(OUString const & pFileName, bool bForceSelection = false); +ds_device const & getDeviceSelection(OUString const & pFileName, bool bForceSelection = false); struct GPUEnv; void releaseOpenCLEnv( GPUEnv *gpuInfo ); diff --git a/opencl/source/opencl_device.cxx b/opencl/source/opencl_device.cxx index cfeb290645ea..9dc0130d6bad 100644 --- a/opencl/source/opencl_device.cxx +++ b/opencl/source/opencl_device.cxx @@ -555,7 +555,7 @@ void writeDevicesLog(std::unique_ptr<ds_profile>& rProfile, OUString const & sPr } // end anonymous namespace -ds_device getDeviceSelection( +ds_device const & getDeviceSelection( OUString const & sProfilePath, bool bForceSelection) { /* Run only if device is not yet selected */ diff --git a/opencl/source/openclwrapper.cxx b/opencl/source/openclwrapper.cxx index 0dd76e74ba05..32f0e5f4effc 100644 --- a/opencl/source/openclwrapper.cxx +++ b/opencl/source/openclwrapper.cxx @@ -85,7 +85,7 @@ OString generateMD5(const void* pData, size_t length) return aBuffer.makeStringAndClear(); } -OString getCacheFolder() +OString const & getCacheFolder() { static OString aCacheFolder; |