diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-20 10:26:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-20 12:31:32 +0100 |
commit | 4f4486c61d3e437059a2ac77aae012489f5c7e25 (patch) | |
tree | 408c9a71e3a2d2c4a921ce3a376546ccadae4437 /framework/source | |
parent | fda2ee3d87600ce7ecbec5528ea80b8e9758f584 (diff) |
look for =() in loplugin:unnecessaryparen
Change-Id: I4f9b71ff7767e90987bb40358fc46ed5d1d571d0
Reviewed-on: https://gerrit.libreoffice.org/44944
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/source')
-rw-r--r-- | framework/source/helper/titlebarupdate.cxx | 6 | ||||
-rw-r--r-- | framework/source/jobs/joburl.cxx | 2 | ||||
-rw-r--r-- | framework/source/layoutmanager/toolbarlayoutmanager.cxx | 2 | ||||
-rw-r--r-- | framework/source/services/autorecovery.cxx | 4 | ||||
-rw-r--r-- | framework/source/uiconfiguration/windowstateconfiguration.cxx | 4 |
5 files changed, 9 insertions, 9 deletions
diff --git a/framework/source/helper/titlebarupdate.cxx b/framework/source/helper/titlebarupdate.cxx index c69946db813c..f8d15ecca3e4 100644 --- a/framework/source/helper/titlebarupdate.cxx +++ b/framework/source/helper/titlebarupdate.cxx @@ -164,7 +164,7 @@ void TitleBarUpdate::impl_updateApplicationID(const css::uno::Reference< css::fr // VCL SYNCHRONIZED -> SolarMutexGuard aSolarGuard; - VclPtr<vcl::Window> pWindow = (VCLUnoHelper::GetWindow( xWindow )); + VclPtr<vcl::Window> pWindow = VCLUnoHelper::GetWindow( xWindow ); if ( pWindow && pWindow->GetType() == WindowType::WORKWINDOW ) { WorkWindow* pWorkWindow = static_cast<WorkWindow*>(pWindow.get()); @@ -278,7 +278,7 @@ void TitleBarUpdate::impl_updateIcon(const css::uno::Reference< css::frame::XFra // VCL SYNCHRONIZED -> SolarMutexGuard aSolarGuard; - VclPtr<vcl::Window> pWindow = (VCLUnoHelper::GetWindow( xWindow )); + VclPtr<vcl::Window> pWindow = VCLUnoHelper::GetWindow( xWindow ); if ( pWindow && ( pWindow->GetType() == WindowType::WORKWINDOW ) ) { WorkWindow* pWorkWindow = static_cast<WorkWindow*>(pWindow.get()); @@ -309,7 +309,7 @@ void TitleBarUpdate::impl_updateTitle(const css::uno::Reference< css::frame::XFr // VCL SYNCHRONIZED -> SolarMutexGuard aSolarGuard; - VclPtr<vcl::Window> pWindow = (VCLUnoHelper::GetWindow( xWindow )); + VclPtr<vcl::Window> pWindow = VCLUnoHelper::GetWindow( xWindow ); if ( pWindow && ( pWindow->GetType() == WindowType::WORKWINDOW ) ) { WorkWindow* pWorkWindow = static_cast<WorkWindow*>(pWindow.get()); diff --git a/framework/source/jobs/joburl.cxx b/framework/source/jobs/joburl.cxx index bdf4580b709f..62bd3ce8b880 100644 --- a/framework/source/jobs/joburl.cxx +++ b/framework/source/jobs/joburl.cxx @@ -224,7 +224,7 @@ bool JobURL::implst_split( /*IN*/ const OUString& sPart , /*OUT*/ OUString& rPartArguments ) { // first search for the given identifier - bool bPartFound = (sPart.matchIgnoreAsciiCaseAsciiL(pPartIdentifier,nPartLength)); + bool bPartFound = sPart.matchIgnoreAsciiCaseAsciiL(pPartIdentifier,nPartLength); // If it exist - we can split the part and return sal_True. // Otherwhise we do nothing and return sal_False. diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.cxx b/framework/source/layoutmanager/toolbarlayoutmanager.cxx index 1e4612726dec..766bc7b141df 100644 --- a/framework/source/layoutmanager/toolbarlayoutmanager.cxx +++ b/framework/source/layoutmanager/toolbarlayoutmanager.cxx @@ -3634,7 +3634,7 @@ void SAL_CALL ToolbarLayoutManager::toggleFloatingMode( const lang::EventObject& if ( !bDockingInProgress ) { aUIDockingElement = implts_findToolbar( e.Source ); - bool bWinFound = ( !aUIDockingElement.m_aName.isEmpty() ); + bool bWinFound = !aUIDockingElement.m_aName.isEmpty(); if ( bWinFound && xWindow.is() ) { diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx index 02d099d42303..0309f91bc9da 100644 --- a/framework/source/services/autorecovery.cxx +++ b/framework/source/services/autorecovery.cxx @@ -2028,7 +2028,7 @@ void AutoRecovery::implts_flushConfigItem(const AutoRecovery::TDocumentInfo& rIn { // new/modify css::uno::Reference< css::beans::XPropertySet > xSet; - bool bNew = (!xCheck->hasByName(sID)); + bool bNew = !xCheck->hasByName(sID); if (bNew) xSet.set(xCreate->createInstance(), css::uno::UNO_QUERY_THROW); else @@ -2296,7 +2296,7 @@ IMPL_LINK_NOARG(AutoRecovery, implts_timerExpired, Timer *, void) if (m_eTimerType == AutoRecovery::E_POLL_FOR_USER_IDLE) { - bool bUserIdle = (Application::GetLastInputInterval()>MIN_TIME_FOR_USER_IDLE); + bool bUserIdle = Application::GetLastInputInterval() > MIN_TIME_FOR_USER_IDLE; if (!bUserIdle) { g.clear(); diff --git a/framework/source/uiconfiguration/windowstateconfiguration.cxx b/framework/source/uiconfiguration/windowstateconfiguration.cxx index b8366e792ced..42699cd98003 100644 --- a/framework/source/uiconfiguration/windowstateconfiguration.cxx +++ b/framework/source/uiconfiguration/windowstateconfiguration.cxx @@ -1170,9 +1170,9 @@ void ConfigurationAccess_WindowState::impl_putPropertiesFromStruct( const Window { OUString aSizeStr; if ( i == PROPERTY_SIZE ) - aSizeStr = ( OUString::number( rWinStateInfo.aSize.Width )); + aSizeStr = OUString::number( rWinStateInfo.aSize.Width ); else - aSizeStr = ( OUString::number( rWinStateInfo.aDockSize.Width )); + aSizeStr = OUString::number( rWinStateInfo.aDockSize.Width ); aSizeStr += aDelim; if ( i == PROPERTY_SIZE ) aSizeStr += OUString::number( rWinStateInfo.aSize.Height ); |