Author: hdu Date: Tue Jan 21 13:56:09 2014 New Revision: 1560012 URL: http://svn.apache.org/r1560012 Log: get rid of an extraneous parentheses in "if((A==B))"
Modified: openoffice/trunk/main/basctl/source/dlged/dlged.cxx openoffice/trunk/main/dbaccess/source/ui/querydesign/JoinTableView.cxx openoffice/trunk/main/filter/source/msfilter/svdfppt.cxx openoffice/trunk/main/sc/source/filter/excel/tokstack.cxx openoffice/trunk/main/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx openoffice/trunk/main/sc/source/filter/xml/XMLStylesExportHelper.cxx openoffice/trunk/main/sd/source/filter/xml/sdxmlwrp.cxx openoffice/trunk/main/svtools/source/edit/syntaxhighlight.cxx openoffice/trunk/main/svx/source/table/cell.cxx openoffice/trunk/main/svx/source/unodraw/unoshape.cxx openoffice/trunk/main/sw/source/ui/app/appopt.cxx openoffice/trunk/main/vcl/aqua/source/app/salinst.cxx Modified: openoffice/trunk/main/basctl/source/dlged/dlged.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/basctl/source/dlged/dlged.cxx?rev=1560012&r1=1560011&r2=1560012&view=diff ============================================================================== --- openoffice/trunk/main/basctl/source/dlged/dlged.cxx (original) +++ openoffice/trunk/main/basctl/source/dlged/dlged.cxx Tue Jan 21 13:56:09 2014 @@ -514,7 +514,7 @@ void DlgEditor::MouseButtonUp( const Mou { sal_Bool bRet = pFunc->MouseButtonUp( rMEvt ); - if( (eMode == DLGED_INSERT) ) + if( eMode == DLGED_INSERT ) bCreateOK = bRet; } Modified: openoffice/trunk/main/dbaccess/source/ui/querydesign/JoinTableView.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/dbaccess/source/ui/querydesign/JoinTableView.cxx?rev=1560012&r1=1560011&r2=1560012&view=diff ============================================================================== --- openoffice/trunk/main/dbaccess/source/ui/querydesign/JoinTableView.cxx (original) +++ openoffice/trunk/main/dbaccess/source/ui/querydesign/JoinTableView.cxx Tue Jan 21 13:56:09 2014 @@ -1462,7 +1462,7 @@ long OJoinTableView::PreNotify(NotifyEve // no conn for any reason -> select the next or previous tab win if(bForward) { - if ((aIter->second == m_aTableMap.rbegin()->second)) + if( aIter->second == m_aTableMap.rbegin()->second) pNextWin = m_aTableMap.begin()->second; else { Modified: openoffice/trunk/main/filter/source/msfilter/svdfppt.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/filter/source/msfilter/svdfppt.cxx?rev=1560012&r1=1560011&r2=1560012&view=diff ============================================================================== --- openoffice/trunk/main/filter/source/msfilter/svdfppt.cxx (original) +++ openoffice/trunk/main/filter/source/msfilter/svdfppt.cxx Tue Jan 21 13:56:09 2014 @@ -1089,7 +1089,7 @@ SdrObject* SdrEscherImport::ProcessObj( } sal_uInt32 nDestinationInstance = aTextObj.GetInstance(); - if ( ( rPersistEntry.ePageKind == PPT_MASTERPAGE ) ) + if ( rPersistEntry.ePageKind == PPT_MASTERPAGE ) { if ( !rPersistEntry.pPresentationObjects ) { Modified: openoffice/trunk/main/sc/source/filter/excel/tokstack.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/filter/excel/tokstack.cxx?rev=1560012&r1=1560011&r2=1560012&view=diff ============================================================================== --- openoffice/trunk/main/sc/source/filter/excel/tokstack.cxx (original) +++ openoffice/trunk/main/sc/source/filter/excel/tokstack.cxx Tue Jan 21 13:56:09 2014 @@ -939,7 +939,7 @@ const String* TokenPool::GetExternal( co if( n && n <= nElementAkt ) { n--; - if( (pType[ n ] == T_Ext) ) + if( pType[ n ] == T_Ext ) { sal_uInt16 nExt = pElement[ n ]; if ( nExt < nP_Ext && ppP_Ext[ nExt ] ) Modified: openoffice/trunk/main/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx?rev=1560012&r1=1560011&r2=1560012&view=diff ============================================================================== --- openoffice/trunk/main/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx (original) +++ openoffice/trunk/main/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx Tue Jan 21 13:56:09 2014 @@ -558,7 +558,7 @@ void ScXMLChangeTrackingImportHelper::Cr ScMyGeneratedList::iterator aEndItr(rList.end()); while (aItr != aEndItr) { - if (((*aItr)->nID == 0)) + if( (*aItr)->nID == 0) { ScBaseCell* pCell = NULL; if ((*aItr)->pCellInfo) Modified: openoffice/trunk/main/sc/source/filter/xml/XMLStylesExportHelper.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/filter/xml/XMLStylesExportHelper.cxx?rev=1560012&r1=1560011&r2=1560012&view=diff ============================================================================== --- openoffice/trunk/main/sc/source/filter/xml/XMLStylesExportHelper.cxx (original) +++ openoffice/trunk/main/sc/source/filter/xml/XMLStylesExportHelper.cxx Tue Jan 21 13:56:09 2014 @@ -331,7 +331,7 @@ void ScMyValidationsContainer::WriteMess sal_Bool bPrevCharWasSpace(sal_True); while(i < sText.getLength()) { - if ((sText[i] == '\n')) + if( sText[i] == '\n') { SvXMLElementExport aElemP(rExport, XML_NAMESPACE_TEXT, XML_P, sal_True, sal_False); rExport.GetTextParagraphExport()->exportText(sTemp.makeStringAndClear(), bPrevCharWasSpace); Modified: openoffice/trunk/main/sd/source/filter/xml/sdxmlwrp.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sd/source/filter/xml/sdxmlwrp.cxx?rev=1560012&r1=1560011&r2=1560012&view=diff ============================================================================== --- openoffice/trunk/main/sd/source/filter/xml/sdxmlwrp.cxx (original) +++ openoffice/trunk/main/sd/source/filter/xml/sdxmlwrp.cxx Tue Jan 21 13:56:09 2014 @@ -791,7 +791,7 @@ sal_Bool SdXMLFilter::Import( ErrCode& n bool bTransform = false; - if( (nRet == 0) ) + if( nRet == 0 ) { if( sBuildId.getLength() ) { Modified: openoffice/trunk/main/svtools/source/edit/syntaxhighlight.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/svtools/source/edit/syntaxhighlight.cxx?rev=1560012&r1=1560011&r2=1560012&view=diff ============================================================================== --- openoffice/trunk/main/svtools/source/edit/syntaxhighlight.cxx (original) +++ openoffice/trunk/main/svtools/source/edit/syntaxhighlight.cxx Tue Jan 21 13:56:09 2014 @@ -483,7 +483,7 @@ sal_Bool SimpleTokenizer_Impl::getNextTo } reType = TT_PARAMETER; } - else if ((c=='-')) + else if( c=='-' ) { sal_Unicode cPeekNext = peekChar(); if (cPeekNext=='-') Modified: openoffice/trunk/main/svx/source/table/cell.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/svx/source/table/cell.cxx?rev=1560012&r1=1560011&r2=1560012&view=diff ============================================================================== --- openoffice/trunk/main/svx/source/table/cell.cxx (original) +++ openoffice/trunk/main/svx/source/table/cell.cxx Tue Jan 21 13:56:09 2014 @@ -1439,7 +1439,7 @@ PropertyState SAL_CALL Cell::getProperty case XATTR_FILLFLOATTRANSPARENCE: { NameOrIndex* pItem = (NameOrIndex*)rSet.GetItem((sal_uInt16)pMap->nWID); - if( ( pItem == NULL ) ) + if( pItem == NULL ) eState = PropertyState_DEFAULT_VALUE; } break; Modified: openoffice/trunk/main/svx/source/unodraw/unoshape.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/svx/source/unodraw/unoshape.cxx?rev=1560012&r1=1560011&r2=1560012&view=diff ============================================================================== --- openoffice/trunk/main/svx/source/unodraw/unoshape.cxx (original) +++ openoffice/trunk/main/svx/source/unodraw/unoshape.cxx Tue Jan 21 13:56:09 2014 @@ -2222,7 +2222,7 @@ beans::PropertyState SAL_CALL SvxShape:: case XATTR_FILLFLOATTRANSPARENCE: { NameOrIndex* pItem = (NameOrIndex*)rSet.GetItem((sal_uInt16)pMap->nWID); - if( ( pItem == NULL ) ) + if( pItem == NULL ) eState = beans::PropertyState_DEFAULT_VALUE; } break; Modified: openoffice/trunk/main/sw/source/ui/app/appopt.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sw/source/ui/app/appopt.cxx?rev=1560012&r1=1560011&r2=1560012&view=diff ============================================================================== --- openoffice/trunk/main/sw/source/ui/app/appopt.cxx (original) +++ openoffice/trunk/main/sw/source/ui/app/appopt.cxx Tue Jan 21 13:56:09 2014 @@ -298,7 +298,7 @@ void SwModule::ApplyItemSet( sal_uInt16 { // the text dialog mustn't apply data to the web view and vice versa sal_Bool bWebView = 0 != PTR_CAST(SwWebView, pAppView); - if( (bWebView == bTextDialog)) + if( bWebView == bTextDialog) pAppView = 0; // } Modified: openoffice/trunk/main/vcl/aqua/source/app/salinst.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/vcl/aqua/source/app/salinst.cxx?rev=1560012&r1=1560011&r2=1560012&view=diff ============================================================================== --- openoffice/trunk/main/vcl/aqua/source/app/salinst.cxx (original) +++ openoffice/trunk/main/vcl/aqua/source/app/salinst.cxx Tue Jan 21 13:56:09 2014 @@ -622,7 +622,7 @@ void AquaSalInstance::handleAppDefinedEv std::list<AquaSalFrame*>::iterator it = pSalData->maFrames.begin(); while( (*it) && ( (it != pSalData->maFrames.end() ) || ( (*it)->mbFullScreen == false ) ) ) { - if ( ((*it)->mbFullScreen == true) ) + if( (*it)->mbFullScreen ) bIsFullScreenMode = true; it++; }