[Libreoffice-commits] core.git: chart2/source

Vasily Melenchuk Vasily.Melenchuk at cib.de
Mon Jan 15 19:18:57 UTC 2018


 chart2/source/controller/main/ChartController.cxx |   10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

New commits:
commit 5836d2be26af9ba4c38e8677e4c9f6f640f273be
Author: Vasily Melenchuk <Vasily.Melenchuk at cib.de>
Date:   Mon Jan 15 20:02:53 2018 +0300

    Code simplification: both if branches are doing same.
    
    Change-Id: I92a51fc62a051390a5e1b3790906cbd2135a53a7
    Reviewed-on: https://gerrit.libreoffice.org/47909
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx
index b2b8dbdc9720..1348c7aedb1b 100644
--- a/chart2/source/controller/main/ChartController.cxx
+++ b/chart2/source/controller/main/ChartController.cxx
@@ -717,15 +717,7 @@ sal_Bool SAL_CALL ChartController::suspend( sal_Bool bSuspend )
     }
 
     //change suspend mode
-    if(bSuspend)
-    {
-        m_bSuspended = bSuspend;
-        return true;
-    }
-    else
-    {
-        m_bSuspended = bSuspend;
-    }
+    m_bSuspended = bSuspend;
     return true;
 }
 


More information about the Libreoffice-commits mailing list