From c544432c049ee93536386a77da1f1d9562ea3b48 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 11 Dec 2019 14:55:22 +0000 Subject: ensure cache dir is created MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I708efa3dc4d9d145b1000d24cea4a4ff02628178 Reviewed-on: https://gerrit.libreoffice.org/84970 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- opencl/source/openclwrapper.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opencl/source/openclwrapper.cxx b/opencl/source/openclwrapper.cxx index 8e2e531e5970..aea040c73036 100644 --- a/opencl/source/openclwrapper.cxx +++ b/opencl/source/openclwrapper.cxx @@ -776,8 +776,7 @@ bool switchOpenCLDevice(const OUString* pDevice, bool bAutoSelect, bool bForceEv if (status < 0) return false; - OUString url("${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE("bootstrap") ":UserInstallation}/cache/"); - rtl::Bootstrap::expandMacros(url); + OUString url(OStringToOUString(getCacheFolder(), RTL_TEXTENCODING_UTF8)); OUString path; osl::FileBase::getSystemPathFromFileURL(url,path); ds_device aSelectedDevice = getDeviceSelection(path, bForceEvaluation); -- cgit