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

Stephan Bergmann sbergman at redhat.com
Tue Oct 24 20:42:58 UTC 2017


 cui/source/inc/hltpbase.hxx    |    2 +-
 cui/source/options/optgdlg.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 81892b2037453108b9bde1512a500cf3b2ce438a
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Oct 24 22:41:37 2017 +0200

    loplugin:unnecessaryparen
    
    ...when compiling as C++17, so the ParenExpr is no longer hidden behind
    ExprWithCleanups/CXXConstructExpr/MaterializedTemporaryExpr wrappers.
    
    Change-Id: I81346edbef46cad72bf53a43f162a75d19b6c713

diff --git a/cui/source/inc/hltpbase.hxx b/cui/source/inc/hltpbase.hxx
index b9d410f0a7cf..edf2546cf217 100644
--- a/cui/source/inc/hltpbase.hxx
+++ b/cui/source/inc/hltpbase.hxx
@@ -127,7 +127,7 @@ public:
     virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
 
     bool IsMarkWndVisible ()      { return static_cast<vcl::Window*>(mpMarkWnd)->IsVisible(); }
-    Size GetSizeExtraWnd ()       { return ( mpMarkWnd->GetSizePixel() ); }
+    Size GetSizeExtraWnd ()       { return mpMarkWnd->GetSizePixel(); }
     bool MoveToExtraWnd ( Point aNewPos, bool bDisConnectDlg = false );
 
     using TabPage::ActivatePage;
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index 94eb3931bc56..19489fecedca 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -1754,7 +1754,7 @@ IMPL_LINK( OfaLanguagesTabPage, LocaleSettingHdl, ListBox&, rListBox, void )
     }
 
     const NfCurrencyEntry* pCurr = &SvNumberFormatter::GetCurrencyEntry(
-            ((eLang == LANGUAGE_USER_SYSTEM_CONFIG) ? MsLangId::getSystemLanguage() : eLang));
+            (eLang == LANGUAGE_USER_SYSTEM_CONFIG) ? MsLangId::getSystemLanguage() : eLang);
     sal_Int32 nPos = m_pCurrencyLB->GetEntryPos( nullptr );
     if (pCurr)
     {


More information about the Libreoffice-commits mailing list