cui/source/dialogs/about.cxx |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

New commits:
commit de37cabc120b9a00ca089d1b28bc7b1958430db7
Author:     Roman Kuznetsov <antilibreoff...@gmail.com>
AuthorDate: Fri Aug 26 09:52:01 2022 +0200
Commit:     Roman Kuznetsov <antilibreoff...@gmail.com>
CommitDate: Mon Aug 29 12:42:05 2022 +0200

    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 <antilibreoff...@gmail.com>

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";
   }
 

Reply via email to