path: root/desktop/source/app/opencl.cxx
diff options
authorStephan Bergmann <>2019-10-29 22:53:33 +0100
committerStephan Bergmann <>2019-10-30 07:14:17 +0100
commit1136ed6c5112018af08f8ac703070cc195389b40 (patch)
tree149b884147725a6df32e35301eb40e657121aa86 /desktop/source/app/opencl.cxx
parentb5d8a5f830832f04d192f1351d8e523a2ef0042a (diff)
Fix Plugin::containsPreprocessingConditionalInclusion
...which had been broken since dfc0dc4801707b2d8080af1540625b43bd463e17 "loplugin:casttovoid: fix containsPreprocessingConditionalInclusion()", and, when range.getEnd() was a macro loc, would typically have wandered off past the end of the intended range, until it would have encountered some #if etc. and erroneously returned true. Fixed the fallout across the code base. While at it, added a clarifying comment and made the "lexing fails" cases that should never happen fail with a fatal error in debug mode. Change-Id: Ieff44548384426d7716b6fc6c836c9069d878729 Reviewed-on: Tested-by: Jenkins Reviewed-by: Stephan Bergmann <>
Diffstat (limited to 'desktop/source/app/opencl.cxx')
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop/source/app/opencl.cxx b/desktop/source/app/opencl.cxx
index 6edb7c077180..5ef73dd70cf9 100644
--- a/desktop/source/app/opencl.cxx
+++ b/desktop/source/app/opencl.cxx
@@ -209,8 +209,7 @@ void Desktop::CheckOpenCLCompute(const Reference< XDesktop2 > &xDesktop)
// Append our app version as well.
- aSelectedCLDeviceVersionID += "--";
- aSelectedCLDeviceVersionID += LIBO_VERSION_DOTTED;
+ aSelectedCLDeviceVersionID += "--" LIBO_VERSION_DOTTED;
// Append timestamp of the file.
OUString aURL("$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/opencl/cl-test.ods");