summaryrefslogtreecommitdiff
path: root/cui/source
diff options
context:
space:
mode:
authorRoman Kuznetsov <antilibreoffice@gmail.com>2022-08-26 09:52:01 +0200
committerRoman Kuznetsov <antilibreoffice@gmail.com>2022-08-29 12:42:05 +0200
commitde37cabc120b9a00ca089d1b28bc7b1958430db7 (patch)
tree50efb7ad0b97a39c7ace91e251fd51e22a1e5e5b /cui/source
parentc2509337d573a8eaaa852db155962238af3a5b99 (diff)
tdf#150246 Show CL and threaded in About dialog in the same time
Change-Id: I8d4974967e1595159251275f58d88c25b9e91e6d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138824 Tested-by: Jenkins Reviewed-by: Roman Kuznetsov <antilibreoffice@gmail.com>
Diffstat (limited to 'cui/source')
-rw-r--r--cui/source/dialogs/about.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx
index 09717ddece4f..abeafa411865 100644
--- a/cui/source/dialogs/about.cxx
+++ b/cui/source/dialogs/about.cxx
@@ -219,11 +219,8 @@ OUString AboutDialog::GetMiscString() {
OUString aCalcMode; // Calc calculation mode
#if HAVE_FEATURE_OPENCL
- bool bOpenCL = openclwrapper::GPUEnv::isOpenCLEnabled();
- if (bOpenCL)
+ if (openclwrapper::GPUEnv::isOpenCLEnabled())
aCalcMode += " CL";
-#else
- const bool bOpenCL = false;
#endif
static const bool bThreadingProhibited =
@@ -231,7 +228,7 @@ OUString AboutDialog::GetMiscString() {
bool bThreadedCalc = officecfg::Office::Calc::Formula::Calculation::
UseThreadedCalculationForFormulaGroups::get();
- if (!bThreadingProhibited && !bOpenCL && bThreadedCalc) {
+ if (!bThreadingProhibited && bThreadedCalc) {
aCalcMode += " threaded";
}