From 81892b2037453108b9bde1512a500cf3b2ce438a Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 24 Oct 2017 22:41:37 +0200 Subject: loplugin:unnecessaryparen ...when compiling as C++17, so the ParenExpr is no longer hidden behind ExprWithCleanups/CXXConstructExpr/MaterializedTemporaryExpr wrappers. Change-Id: I81346edbef46cad72bf53a43f162a75d19b6c713 --- cui/source/inc/hltpbase.hxx | 2 +- cui/source/options/optgdlg.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(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) { -- cgit