From 868d8c8f0fdf376b0a3eb545ee841c9c12ffee3b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 7 Jul 2017 08:42:54 +0200 Subject: loplugin:unnecessaryparen handle parens inside call expr stick to single-arg function calls, sometimes parens in multi-arg calls might be there for clarity Change-Id: Ib80190c571ce65b5d219a88056687042de749e74 Reviewed-on: https://gerrit.libreoffice.org/39676 Tested-by: Jenkins Reviewed-by: Noel Grandin --- embeddedobj/source/general/dummyobject.cxx | 2 +- embeddedobj/source/msole/olepersist.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'embeddedobj') diff --git a/embeddedobj/source/general/dummyobject.cxx b/embeddedobj/source/general/dummyobject.cxx index 83056c2a022e..269599af679d 100644 --- a/embeddedobj/source/general/dummyobject.cxx +++ b/embeddedobj/source/general/dummyobject.cxx @@ -294,7 +294,7 @@ void SAL_CALL ODummyEmbeddedObject::setPersistentEntry( if ( m_bWaitSaveCompleted ) { if ( nEntryConnectionMode == embed::EntryInitModes::NO_INIT ) - saveCompleted( ( m_xParentStorage != xStorage || !m_aEntryName.equals( sEntName ) ) ); + saveCompleted( m_xParentStorage != xStorage || !m_aEntryName.equals( sEntName ) ); else throw embed::WrongStateException( "The object waits for saveCompleted() call!", diff --git a/embeddedobj/source/msole/olepersist.cxx b/embeddedobj/source/msole/olepersist.cxx index 9b1b86359741..e039a306f867 100644 --- a/embeddedobj/source/msole/olepersist.cxx +++ b/embeddedobj/source/msole/olepersist.cxx @@ -1305,7 +1305,7 @@ void SAL_CALL OleEmbeddedObject::setPersistentEntry( if ( m_bWaitSaveCompleted ) { if ( nEntryConnectionMode == embed::EntryInitModes::NO_INIT ) - saveCompleted( ( m_xParentStorage != xStorage || !m_aEntryName.equals( sEntName ) ) ); + saveCompleted( m_xParentStorage != xStorage || !m_aEntryName.equals( sEntName ) ); else throw embed::WrongStateException( "The object waits for saveCompleted() call!", -- cgit