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

Miklos Vajna vmiklos at collabora.co.uk
Tue Sep 5 07:38:37 UTC 2017


 cui/source/customize/SvxMenuConfigPage.cxx    |    2 +-
 cui/source/customize/SvxToolbarConfigPage.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 37fb2896144a1858e68c668ff39ae5d7b9d91653
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Tue Sep 5 09:36:54 2017 +0200

    cui: fix loplugin:unnecessaryparen warnings
    
    Change-Id: I7eaee88006c57bb063108aefe28b19ac72363076

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);
 


More information about the Libreoffice-commits mailing list