summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-05 10:48:35 +0200
committerNoel Grandin <noel@peralex.com>2016-05-05 10:52:43 +0200
commitfa2313d8cff5f4b9f42bf8f3f7a6ca1c1dda47de (patch)
tree580054111c61fb40a28826460a5b09e78eb2f10a
parent-Werror,-Winconsistent-missing-override (diff)
downloadcore-fa2313d8cff5f4b9f42bf8f3f7a6ca1c1dda47de.tar.gz
core-fa2313d8cff5f4b9f42bf8f3f7a6ca1c1dda47de.zip
loplugin:simplifybool
Change-Id: I994ff5ad74dcc68eef31c3779b5711160cc5ac5a
-rw-r--r--sd/source/ui/sidebar/SlideBackground.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx
index 246e9b570133..d3e6d54d679b 100644
--- a/sd/source/ui/sidebar/SlideBackground.cxx
+++ b/sd/source/ui/sidebar/SlideBackground.cxx
@@ -529,14 +529,14 @@ IMPL_LINK_NOARG_TYPED(SlideBackground, AssignMasterPage, ListBox&, void)
IMPL_LINK_NOARG_TYPED(SlideBackground, DspBackground, Button*, void)
{
- bool IsChecked = (mpDspMasterBackground->IsChecked() ? true : false);
+ bool IsChecked = mpDspMasterBackground->IsChecked();
const SfxBoolItem aBoolItem(SID_DISPLAY_MASTER_BACKGROUND, IsChecked);
GetBindings()->GetDispatcher()->ExecuteList(SID_DISPLAY_MASTER_BACKGROUND, SfxCallMode::RECORD, { &aBoolItem });
}
IMPL_LINK_NOARG_TYPED(SlideBackground, DspObjects, Button*, void)
{
- bool IsChecked = (mpDspMasterObjects->IsChecked() ? true : false);
+ bool IsChecked = mpDspMasterObjects->IsChecked();
const SfxBoolItem aBoolItem(SID_DISPLAY_MASTER_OBJECTS,IsChecked);
GetBindings()->GetDispatcher()->ExecuteList(SID_DISPLAY_MASTER_OBJECTS, SfxCallMode::RECORD, { &aBoolItem, &aBoolItem });
}