summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-09-05 09:36:54 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-09-05 09:38:07 +0200
commit37fb2896144a1858e68c668ff39ae5d7b9d91653 (patch)
tree33776ca11f41525f9a413d9541ac2e5278d02b47 /cui
parent6dce5d167ebbe1f69d2198b2809e0ae3e5451bd4 (diff)
cui: fix loplugin:unnecessaryparen warnings
Change-Id: I7eaee88006c57bb063108aefe28b19ac72363076
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/SvxMenuConfigPage.cxx2
-rw-r--r--cui/source/customize/SvxToolbarConfigPage.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/customize/SvxMenuConfigPage.cxx b/cui/source/customize/SvxMenuConfigPage.cxx
index 016141184758..6d02d8d4442d 100644
--- a/cui/source/customize/SvxMenuConfigPage.cxx
+++ b/cui/source/customize/SvxMenuConfigPage.cxx
@@ -206,7 +206,7 @@ void SvxMenuConfigPage::UpdateButtonStates()
SvTreeListEntry* selection = m_pContentsListBox->GetCurEntry();
bool bIsSeparator =
- selection && (static_cast<SvxConfigEntry*>(selection->GetUserData()))->IsSeparator();
+ selection && static_cast<SvxConfigEntry*>(selection->GetUserData())->IsSeparator();
bool bIsValidSelection =
!(m_pContentsListBox->GetEntryCount() == 0 || selection == nullptr);
diff --git a/cui/source/customize/SvxToolbarConfigPage.cxx b/cui/source/customize/SvxToolbarConfigPage.cxx
index 5446c673f5ed..7112e6edbd7a 100644
--- a/cui/source/customize/SvxToolbarConfigPage.cxx
+++ b/cui/source/customize/SvxToolbarConfigPage.cxx
@@ -702,7 +702,7 @@ void SvxToolbarConfigPage::UpdateButtonStates()
SvTreeListEntry* selection = m_pContentsListBox->GetCurEntry();
bool bIsSeparator =
- selection && (static_cast<SvxConfigEntry*>(selection->GetUserData()))->IsSeparator();
+ selection && static_cast<SvxConfigEntry*>(selection->GetUserData())->IsSeparator();
bool bIsValidSelection =
!(m_pContentsListBox->GetEntryCount() == 0 || selection == nullptr);