summaryrefslogtreecommitdiff
path: root/desktop/source/app/opencl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-14 15:29:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-15 12:25:22 +0200
commit1b75f95f9bfa2f4f5ddd4c6b2ef6c86576d9c92b (patch)
tree079370ffe1f419d32d750b17956224ee0306b96b /desktop/source/app/opencl.cxx
parentec87e11f0e4bb6f53eb0c5d2575f590aea95269f (diff)
loplugin:logexceptionnicely in desktop
Change-Id: I19f70b0e9d1ca2bbcd2595af24f2e15766d14b33 Reviewed-on: https://gerrit.libreoffice.org/74046 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/source/app/opencl.cxx')
-rw-r--r--desktop/source/app/opencl.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop/source/app/opencl.cxx b/desktop/source/app/opencl.cxx
index 92d720eeae9f..16da10e50206 100644
--- a/desktop/source/app/opencl.cxx
+++ b/desktop/source/app/opencl.cxx
@@ -25,6 +25,7 @@
#include <officecfg/Office/Common.hxx>
#include <svl/documentlockfile.hxx>
+#include <tools/diagnose_ex.h>
#include <com/sun/star/table/XCell2.hpp>
#include <com/sun/star/sheet/XCalculatable.hpp>
@@ -162,9 +163,9 @@ static bool testOpenCLCompute(const Reference< XDesktop2 > &xDesktop, const OUSt
bSuccess = true;
}
}
- catch (const css::uno::Exception &e)
+ catch (const css::uno::Exception &)
{
- SAL_WARN("opencl", "OpenCL testing failed - disabling: " << e);
+ TOOLS_WARN_EXCEPTION("opencl", "OpenCL testing failed - disabling");
}
if (nKernelFailures != openclwrapper::kernelFailures)