sc/source/ui/condformat/condformateasydlg.cxx |   14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

New commits:
commit 7a802001b06939476a8d8a3f4dc7e5c234d376a4
Author:     codewithvk <vivek.jav...@collabora.com>
AuthorDate: Thu Oct 17 16:16:05 2024 +0530
Commit:     Pranam Lashkari <lpra...@collabora.com>
CommitDate: Fri Oct 25 14:51:45 2024 +0200

    sc: simplify boolean checks by removing redundant comparisons
    
    Signed-off-by: codewithvk <vivek.jav...@collabora.com>
    Change-Id: I2012a757ce9a70b9edb6a344973b5088b5cfa20b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175078
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Pranam Lashkari <lpra...@collabora.com>
    (cherry picked from commit 89fe841cdcccfd34e7e092af7d8cd4d952175a2f)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175400
    Tested-by: Jenkins

diff --git a/sc/source/ui/condformat/condformateasydlg.cxx 
b/sc/source/ui/condformat/condformateasydlg.cxx
index 7040a9cf2d79..ee8f8318cf37 100644
--- a/sc/source/ui/condformat/condformateasydlg.cxx
+++ b/sc/source/ui/condformat/condformateasydlg.cxx
@@ -342,14 +342,12 @@ IMPL_LINK(ConditionalFormatEasyDialog, ButtonPressed, 
weld::Button&, rButton, vo
 
         std::unique_ptr<ScConditionalFormat> pFormat(new 
ScConditionalFormat(0, mpDocument));
 
-        OUString sExpression1
-            = (mxNumberEntry->get_visible() == true && 
mxAllInputs->get_visible() == true
-                   ? mxNumberEntry->get_text()
-                   : u""_ustr);
-        OUString sExpression2
-            = (mxNumberEntry2->get_visible() == true && 
mxAllInputs->get_visible() == true
-                   ? mxNumberEntry2->get_text()
-                   : u""_ustr);
+        OUString sExpression1 = (mxNumberEntry->get_visible() && 
mxAllInputs->get_visible()
+                                     ? mxNumberEntry->get_text()
+                                     : u""_ustr);
+        OUString sExpression2 = (mxNumberEntry2->get_visible() && 
mxAllInputs->get_visible()
+                                     ? mxNumberEntry2->get_text()
+                                     : u""_ustr);
 
         switch (meMode)
         {

Reply via email to