summaryrefslogtreecommitdiff
path: root/opencl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-07-18 09:22:27 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-07-27 06:48:25 +0000
commit508c95f1b655d9cfa6be37a5a9de9aff6fd383bf (patch)
treed1c8626818cbf26a699875ae2d82f751a1657e92 /opencl
parent9f4af777a832d8a0b9a21d793d421fa6228131e0 (diff)
improve passstuffbyref return analysis
Change-Id: I4258bcc97273d8bb7a8c4879fac02a427f76e18c Reviewed-on: https://gerrit.libreoffice.org/27317 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'opencl')
-rw-r--r--opencl/inc/opencl_device.hxx2
-rw-r--r--opencl/source/opencl_device.cxx2
-rw-r--r--opencl/source/openclwrapper.cxx2
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;