summaryrefslogtreecommitdiff
path: root/chart2/source/controller/main/ChartController.cxx
diff options
context:
space:
mode:
authorVasily Melenchuk <Vasily.Melenchuk@cib.de>2018-01-15 20:02:53 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-15 20:18:36 +0100
commit5836d2be26af9ba4c38e8677e4c9f6f640f273be (patch)
tree3ca174222afe9fc10fbe240fb554f51c74819d80 /chart2/source/controller/main/ChartController.cxx
parent33aa58d66e97c48009bcbae6cf2cab349382fb4d (diff)
Code simplification: both if branches are doing same.
Change-Id: I92a51fc62a051390a5e1b3790906cbd2135a53a7 Reviewed-on: https://gerrit.libreoffice.org/47909 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/controller/main/ChartController.cxx')
-rw-r--r--chart2/source/controller/main/ChartController.cxx10
1 files changed, 1 insertions, 9 deletions
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;
}