diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-13 09:56:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-13 12:05:42 +0200 |
commit | dc63cc326ee5757124cef45e470d290e6e32002e (patch) | |
tree | e912d5e06b8602e391f3aa7e084e92c808f2fcfb /filter | |
parent | 51a50cc95a8cb461b7026c1eb8908e17f4055076 (diff) |
use more OUString::operator== in dbaccess..filter
Change-Id: Ib7b4f2b2403ce766a7db2f6ffc118468e7677776
Reviewed-on: https://gerrit.libreoffice.org/39889
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/config/cache/cacheitem.cxx | 12 | ||||
-rw-r--r-- | filter/source/config/cache/filtercache.cxx | 8 | ||||
-rw-r--r-- | filter/source/config/cache/filterfactory.cxx | 2 | ||||
-rw-r--r-- | filter/source/config/cache/typedetection.cxx | 2 | ||||
-rw-r--r-- | filter/source/flash/swfuno.cxx | 4 | ||||
-rw-r--r-- | filter/source/msfilter/escherex.cxx | 112 | ||||
-rw-r--r-- | filter/source/msfilter/msvbahelper.cxx | 6 | ||||
-rw-r--r-- | filter/source/pdf/pdfuno.cxx | 6 | ||||
-rw-r--r-- | filter/source/t602/filterenv.cxx | 4 | ||||
-rw-r--r-- | filter/source/xmlfilteradaptor/genericfilter.cxx | 2 | ||||
-rw-r--r-- | filter/source/xsltdialog/xmlfilterdialogcomponent.cxx | 2 |
11 files changed, 77 insertions, 83 deletions
diff --git a/filter/source/config/cache/cacheitem.cxx b/filter/source/config/cache/cacheitem.cxx index 8478e1f355ba..21db68c3c382 100644 --- a/filter/source/config/cache/cacheitem.cxx +++ b/filter/source/config/cache/cacheitem.cxx @@ -158,7 +158,7 @@ bool isSubSet(const css::uno::Any& aSubSet, (aSet >>= v2) ) { - bool bIs = (v1.equals(v2)); + bool bIs = v1 == v2; FILTER_CONFIG_LOG_1_("isSubSet() ... check for string types => return %s\n", bIs ? "TRUE" : "FALSE") return bIs; } @@ -176,10 +176,7 @@ bool isSubSet(const css::uno::Any& aSubSet, (aSet >>= p2) ) { - bool bIs = ( - (p1.Name.equals(p2.Name) ) && - (isSubSet(p1.Value, p2.Value)) - ); + bool bIs = (p1.Name == p2.Name) && isSubSet(p1.Value, p2.Value); FILTER_CONFIG_LOG_1_("isSubSet() ... check for structured types [PropertyValue] => return %s\n", bIs ? "TRUE" : "FALSE") return bIs; } @@ -192,10 +189,7 @@ bool isSubSet(const css::uno::Any& aSubSet, (aSet >>= n2) ) { - bool bIs = ( - (n1.Name.equals(n2.Name) ) && - (isSubSet(n1.Value, n2.Value)) - ); + bool bIs = (n1.Name == n2.Name) && isSubSet(n1.Value, n2.Value); FILTER_CONFIG_LOG_1_("isSubSet() ... check for structured types [NamedValue] => return %s\n", bIs ? "TRUE" : "FALSE") return bIs; } diff --git a/filter/source/config/cache/filtercache.cxx b/filter/source/config/cache/filtercache.cxx index b9d9bdf395ba..09a136af4120 100644 --- a/filter/source/config/cache/filtercache.cxx +++ b/filter/source/config/cache/filtercache.cxx @@ -502,7 +502,7 @@ void FilterCache::addStatePropsToItem( EItemType eType, if ( (aDirectValue >>= sDefaultFrameLoader) && (!sDefaultFrameLoader.isEmpty() ) && - (sItem.equals(sDefaultFrameLoader) ) + (sItem == sDefaultFrameLoader ) ) { rItem[PROPNAME_FINALIZED] <<= true; @@ -1015,7 +1015,7 @@ void FilterCache::impl_validateAndOptimize() OUString sInternalTypeNameCheck; aType[PROPNAME_NAME] >>= sInternalTypeNameCheck; - if (!sInternalTypeNameCheck.equals(sType)) + if (sInternalTypeNameCheck != sType) { sLog.append("Warning\t:\t" "The type \"" + sType + "\" does support the property \"Name\" correctly.\n"); ++nWarnings; @@ -1147,7 +1147,7 @@ void FilterCache::impl_validateAndOptimize() OUString sInternalFilterNameCheck; aPrefFilter[PROPNAME_NAME] >>= sInternalFilterNameCheck; - if (!sInternalFilterNameCheck.equals(sPrefFilter)) + if (sInternalFilterNameCheck != sPrefFilter) { sLog.append("Warning\t:\t" "The filter \"" + sPrefFilter + "\" does support the property \"Name\" correctly.\n"); @@ -1186,7 +1186,7 @@ void FilterCache::impl_validateAndOptimize() // types, which are not referenced by any other loader. // So we can avoid our code against the complexity of a diff! OUString sLoader = pIt->first; - if (sLoader.equals(sDefaultFrameLoader)) + if (sLoader == sDefaultFrameLoader) continue; CacheItem& rLoader = pIt->second; diff --git a/filter/source/config/cache/filterfactory.cxx b/filter/source/config/cache/filterfactory.cxx index be8750797f94..604118e32d3d 100644 --- a/filter/source/config/cache/filterfactory.cxx +++ b/filter/source/config/cache/filterfactory.cxx @@ -312,7 +312,7 @@ OUStringList FilterFactory::impl_queryMatchByDocumentService(const QueryTokenize if ( (!sDocumentService.isEmpty() ) && (sDocumentService != QUERY_CONSTVALUE_ALL ) && - (!sCheckValue.equals(sDocumentService) ) + (sCheckValue != sDocumentService ) ) { continue; // ignore filter -> try next one! diff --git a/filter/source/config/cache/typedetection.cxx b/filter/source/config/cache/typedetection.cxx index d1b9911e7ccb..3469c8e7f105 100644 --- a/filter/source/config/cache/typedetection.cxx +++ b/filter/source/config/cache/typedetection.cxx @@ -685,7 +685,7 @@ bool TypeDetection::impl_getPreselectionForType( ++pIt ) { OUString sCheckExtension(pIt->toAsciiLowerCase()); - if (sCheckExtension.equals(sExtension)) + if (sCheckExtension == sExtension) { bBreakDetection = true; bMatchByExtension = true; diff --git a/filter/source/flash/swfuno.cxx b/filter/source/flash/swfuno.cxx index eb71a0f1a2d0..eeb122d6004c 100644 --- a/filter/source/flash/swfuno.cxx +++ b/filter/source/flash/swfuno.cxx @@ -42,7 +42,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL flash_component_getFactory( Reference< XSingleServiceFactory > xFactory; OUString implName = OUString::createFromAscii( pImplName ); - if ( implName.equals(FlashExportFilter_getImplementationName()) ) + if ( implName == FlashExportFilter_getImplementationName() ) { xFactory = createSingleFactory( static_cast< XMultiServiceFactory * >( pServiceManager ), @@ -50,7 +50,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL flash_component_getFactory( FlashExportFilter_createInstance, FlashExportFilter_getSupportedServiceNames() ); } - else if ( implName.equals(SWFDialog_getImplementationName()) ) + else if ( implName == SWFDialog_getImplementationName() ) { xFactory = createSingleFactory( static_cast< XMultiServiceFactory * >( pServiceManager ), diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx index a13589eaea44..87dd2b2413b0 100644 --- a/filter/source/msfilter/escherex.cxx +++ b/filter/source/msfilter/escherex.cxx @@ -2610,7 +2610,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT for ( i = 0; i < nCount; i++ ) { const beans::PropertyValue& rProp = aGeoPropSeq[ i ]; - if ( rProp.Name.equals( sViewBox ) ) + if ( rProp.Name == sViewBox ) { if ( !bIsDefaultObject ) { @@ -2624,7 +2624,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT } } } - else if ( rProp.Name.equals( sTextRotateAngle ) ) + else if ( rProp.Name == sTextRotateAngle ) { double f = 0; if ( rProp.Value >>= f ) @@ -2640,7 +2640,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT AddOpt( DFF_Prop_cdirFont, mso_cdir270 ); } } - else if ( rProp.Name.equals( sExtrusion ) ) + else if ( rProp.Name == sExtrusion ) { uno::Sequence< beans::PropertyValue > aExtrusionPropSeq; if ( rProp.Value >>= aExtrusionPropSeq ) @@ -2681,7 +2681,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT const OUString sExtrusionOrigin ( "Origin" ); const OUString sExtrusionColor ( "Color" ); - if ( rrProp.Name.equals( sExtrusion ) ) + if ( rrProp.Name == sExtrusion ) { bool bExtrusionOn; if ( rrProp.Value >>= bExtrusionOn ) @@ -2693,13 +2693,13 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT nLightFaceFlags &=~8; } } - else if ( rrProp.Name.equals( sExtrusionBrightness ) ) + else if ( rrProp.Name == sExtrusionBrightness ) { double fExtrusionBrightness = 0; if ( rrProp.Value >>= fExtrusionBrightness ) AddOpt( DFF_Prop_c3DAmbientIntensity, (sal_Int32)( fExtrusionBrightness * 655.36 ) ); } - else if ( rrProp.Name.equals( sExtrusionDepth ) ) + else if ( rrProp.Name == sExtrusionDepth ) { double fDepth = 0; double fFraction = 0; @@ -2719,19 +2719,19 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT } } } - else if ( rrProp.Name.equals( sExtrusionDiffusion ) ) + else if ( rrProp.Name == sExtrusionDiffusion ) { double fExtrusionDiffusion = 0; if ( rrProp.Value >>= fExtrusionDiffusion ) AddOpt( DFF_Prop_c3DDiffuseAmt, (sal_Int32)( fExtrusionDiffusion * 655.36 ) ); } - else if ( rrProp.Name.equals( sExtrusionNumberOfLineSegments ) ) + else if ( rrProp.Name == sExtrusionNumberOfLineSegments ) { sal_Int32 nExtrusionNumberOfLineSegments = 0; if ( rrProp.Value >>= nExtrusionNumberOfLineSegments ) AddOpt( DFF_Prop_c3DTolerance, nExtrusionNumberOfLineSegments ); } - else if ( rrProp.Name.equals( sExtrusionLightFace ) ) + else if ( rrProp.Name == sExtrusionLightFace ) { bool bExtrusionLightFace; if ( rrProp.Value >>= bExtrusionLightFace ) @@ -2743,7 +2743,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT nLightFaceFlags &=~1; } } - else if ( rrProp.Name.equals( sExtrusionFirstLightHarsh ) ) + else if ( rrProp.Name == sExtrusionFirstLightHarsh ) { bool bExtrusionFirstLightHarsh; if ( rrProp.Value >>= bExtrusionFirstLightHarsh ) @@ -2755,7 +2755,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT nFillHarshFlags &=~2; } } - else if ( rrProp.Name.equals( sExtrusionSecondLightHarsh ) ) + else if ( rrProp.Name == sExtrusionSecondLightHarsh ) { bool bExtrusionSecondLightHarsh; if ( rrProp.Value >>= bExtrusionSecondLightHarsh ) @@ -2767,19 +2767,19 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT nFillHarshFlags &=~1; } } - else if ( rrProp.Name.equals( sExtrusionFirstLightLevel ) ) + else if ( rrProp.Name == sExtrusionFirstLightLevel ) { double fExtrusionFirstLightLevel = 0; if ( rrProp.Value >>= fExtrusionFirstLightLevel ) AddOpt( DFF_Prop_c3DKeyIntensity, (sal_Int32)( fExtrusionFirstLightLevel * 655.36 ) ); } - else if ( rrProp.Name.equals( sExtrusionSecondLightLevel ) ) + else if ( rrProp.Name == sExtrusionSecondLightLevel ) { double fExtrusionSecondLightLevel = 0; if ( rrProp.Value >>= fExtrusionSecondLightLevel ) AddOpt( DFF_Prop_c3DFillIntensity, (sal_Int32)( fExtrusionSecondLightLevel * 655.36 ) ); } - else if ( rrProp.Name.equals( sExtrusionFirstLightDirection ) ) + else if ( rrProp.Name == sExtrusionFirstLightDirection ) { drawing::Direction3D aExtrusionFirstLightDirection; if ( rrProp.Value >>= aExtrusionFirstLightDirection ) @@ -2789,7 +2789,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT AddOpt( DFF_Prop_c3DKeyZ, (sal_Int32)aExtrusionFirstLightDirection.DirectionZ ); } } - else if ( rrProp.Name.equals( sExtrusionSecondLightDirection ) ) + else if ( rrProp.Name == sExtrusionSecondLightDirection ) { drawing::Direction3D aExtrusionSecondLightPosition; if ( rrProp.Value >>= aExtrusionSecondLightPosition ) @@ -2799,7 +2799,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT AddOpt( DFF_Prop_c3DFillZ, (sal_Int32)aExtrusionSecondLightPosition.DirectionZ ); } } - else if ( rrProp.Name.equals( sExtrusionMetal ) ) + else if ( rrProp.Name == sExtrusionMetal ) { bool bExtrusionMetal; if ( rrProp.Value >>= bExtrusionMetal ) @@ -2811,7 +2811,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT nLightFaceFlags &=~4; } } - else if ( rrProp.Name.equals( sExtrusionShadeMode ) ) + else if ( rrProp.Name == sExtrusionShadeMode ) { drawing::ShadeMode eExtrusionShadeMode; if ( rrProp.Value >>= eExtrusionShadeMode ) @@ -2834,7 +2834,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT AddOpt( DFF_Prop_c3DRenderMode, nRenderMode ); } } - else if ( rrProp.Name.equals( sExtrusionRotateAngle ) ) + else if ( rrProp.Name == sExtrusionRotateAngle ) { double fExtrusionAngleX = 0; double fExtrusionAngleY = 0; @@ -2847,7 +2847,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT AddOpt( DFF_Prop_c3DYRotationAngle, (sal_Int32)fExtrusionAngleY ); } } - else if ( rrProp.Name.equals( sExtrusionRotationCenter ) ) + else if ( rrProp.Name == sExtrusionRotationCenter ) { drawing::Direction3D aExtrusionRotationCenter; if ( rrProp.Value >>= aExtrusionRotationCenter ) @@ -2858,13 +2858,13 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT nFillHarshFlags &=~8; // don't use AutoRotationCenter; } } - else if ( rrProp.Name.equals( sExtrusionShininess ) ) + else if ( rrProp.Name == sExtrusionShininess ) { double fExtrusionShininess = 0; if ( rrProp.Value >>= fExtrusionShininess ) AddOpt( DFF_Prop_c3DShininess, (sal_Int32)( fExtrusionShininess * 655.36 ) ); } - else if ( rrProp.Name.equals( sExtrusionSkew ) ) + else if ( rrProp.Name == sExtrusionSkew ) { double fSkewAmount = 0; double fSkewAngle = 0; @@ -2875,13 +2875,13 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT AddOpt( DFF_Prop_c3DSkewAngle, (sal_Int32)( fSkewAngle * 65536 ) ); } } - else if ( rrProp.Name.equals( sExtrusionSpecularity ) ) + else if ( rrProp.Name == sExtrusionSpecularity ) { double fExtrusionSpecularity = 0; if ( rrProp.Value >>= fExtrusionSpecularity ) AddOpt( DFF_Prop_c3DSpecularAmt, (sal_Int32)( fExtrusionSpecularity * 1333 ) ); } - else if ( rrProp.Name.equals( sExtrusionProjectionMode ) ) + else if ( rrProp.Name == sExtrusionProjectionMode ) { drawing::ProjectionMode eExtrusionProjectionMode; if ( rrProp.Value >>= eExtrusionProjectionMode ) @@ -2893,7 +2893,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT nFillHarshFlags &=~4; } } - else if ( rrProp.Name.equals( sExtrusionViewPoint ) ) + else if ( rrProp.Name == sExtrusionViewPoint ) { drawing::Position3D aExtrusionViewPoint; if ( rrProp.Value >>= aExtrusionViewPoint ) @@ -2906,7 +2906,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT AddOpt( DFF_Prop_c3DZViewpoint, (sal_Int32)aExtrusionViewPoint.PositionZ ); } } - else if ( rrProp.Name.equals( sExtrusionOrigin ) ) + else if ( rrProp.Name == sExtrusionOrigin ) { double fExtrusionOriginX = 0; double fExtrusionOriginY = 0; @@ -2917,7 +2917,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT AddOpt( DFF_Prop_c3DOriginY, (sal_Int32)( fExtrusionOriginY * 65536 ) ); } } - else if ( rrProp.Name.equals( sExtrusionColor ) ) + else if ( rrProp.Name == sExtrusionColor ) { bool bExtrusionColor; if ( rrProp.Value >>= bExtrusionColor ) @@ -2944,7 +2944,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT AddOpt( DFF_Prop_fc3DFillHarsh, nFillHarshFlags ); } } - else if ( rProp.Name.equals( sEquations ) ) + else if ( rProp.Name == sEquations ) { if ( !bIsDefaultObject ) { @@ -2979,7 +2979,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT } } } - else if ( rProp.Name.equals( sPath ) ) + else if ( rProp.Name == sPath ) { uno::Sequence< beans::PropertyValue > aPathPropSeq; if ( rProp.Value >>= aPathPropSeq ) @@ -3004,7 +3004,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT const OUString sPathStretchY ( "StretchY" ); const OUString sPathTextFrames ( "TextFrames" ); - if ( rrProp.Name.equals( sPathExtrusionAllowed ) ) + if ( rrProp.Name == sPathExtrusionAllowed ) { bool bExtrusionAllowed; if ( rrProp.Value >>= bExtrusionAllowed ) @@ -3016,7 +3016,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT nPathFlags &=~16; } } - else if ( rrProp.Name.equals( sPathConcentricGradientFillAllowed ) ) + else if ( rrProp.Name == sPathConcentricGradientFillAllowed ) { bool bConcentricGradientFillAllowed; if ( rrProp.Value >>= bConcentricGradientFillAllowed ) @@ -3028,7 +3028,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT nPathFlags &=~2; } } - else if ( rrProp.Name.equals( sPathTextPathAllowed ) ) + else if ( rrProp.Name == sPathTextPathAllowed ) { bool bTextPathAllowed; if ( rrProp.Value >>= bTextPathAllowed ) @@ -3040,7 +3040,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT nPathFlags &=~4; } } - else if ( rrProp.Name.equals( sPathCoordinates ) ) + else if ( rrProp.Name == sPathCoordinates ) { if ( !bIsDefaultObject ) { @@ -3048,7 +3048,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT bPathCoordinatesProp = true; } } - else if ( rrProp.Name.equals( sPathGluePoints ) ) + else if ( rrProp.Name == sPathGluePoints ) { if ( !bIsDefaultObject ) { @@ -3084,13 +3084,13 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT } } } - else if ( rrProp.Name.equals( sPathGluePointType ) ) + else if ( rrProp.Name == sPathGluePointType ) { sal_Int16 nGluePointType = sal_Int16(); if ( rrProp.Value >>= nGluePointType ) AddOpt( DFF_Prop_connectorType, (sal_uInt16)nGluePointType ); } - else if ( rrProp.Name.equals( sPathSegments ) ) + else if ( rrProp.Name == sPathSegments ) { if ( !bIsDefaultObject ) { @@ -3212,7 +3212,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT } } } - else if ( rrProp.Name.equals( sPathStretchX ) ) + else if ( rrProp.Name == sPathStretchX ) { if ( !bIsDefaultObject ) { @@ -3221,7 +3221,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT AddOpt( DFF_Prop_stretchPointX, nStretchX ); } } - else if ( rrProp.Name.equals( sPathStretchY ) ) + else if ( rrProp.Name == sPathStretchY ) { if ( !bIsDefaultObject ) { @@ -3230,7 +3230,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT AddOpt( DFF_Prop_stretchPointY, nStretchY ); } } - else if ( rrProp.Name.equals( sPathTextFrames ) ) + else if ( rrProp.Name == sPathTextFrames ) { if ( !bIsDefaultObject ) { @@ -3275,7 +3275,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT AddOpt( DFF_Prop_fFillOK, nPathFlags ); } } - else if ( rProp.Name.equals( sTextPath ) ) + else if ( rProp.Name == sTextPath ) { uno::Sequence< beans::PropertyValue > aTextPathPropSeq; if ( rProp.Value >>= aTextPathPropSeq ) @@ -3293,7 +3293,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT const OUString sTextPathScaleX ( "ScaleX" ); const OUString sSameLetterHeights ( "SameLetterHeights" ); - if ( rrProp.Name.equals( sTextPath ) ) + if ( rrProp.Name == sTextPath ) { bool bTextPathOn; if ( rrProp.Value >>= bTextPathOn ) @@ -3312,7 +3312,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT nTextPathFlags &=~0x4000; } } - else if ( rrProp.Name.equals( sTextPathMode ) ) + else if ( rrProp.Name == sTextPathMode ) { css::drawing::EnhancedCustomShapeTextPathMode eTextPathMode; if ( rrProp.Value >>= eTextPathMode ) @@ -3325,7 +3325,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT nTextPathFlags |= 0x500; } } - else if ( rrProp.Name.equals( sTextPathScaleX ) ) + else if ( rrProp.Name == sTextPathScaleX ) { bool bTextPathScaleX; if ( rrProp.Value >>= bTextPathScaleX ) @@ -3337,7 +3337,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT nTextPathFlags &=~0x40; } } - else if ( rrProp.Name.equals( sSameLetterHeights ) ) + else if ( rrProp.Name == sSameLetterHeights ) { bool bSameLetterHeights; if ( rrProp.Value >>= bSameLetterHeights ) @@ -3477,7 +3477,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT AddOpt( DFF_Prop_gtextFStrikethrough, nTextPathFlags ); } } - else if ( rProp.Name.equals( sHandles ) ) + else if ( rProp.Name == sHandles ) { if ( !bIsDefaultObject ) { @@ -3521,7 +3521,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT const OUString sRangeYMinimum ( "RangeYMinimum" ); const OUString sRangeYMaximum ( "RangeYMaximum" ); - if ( rPropVal.Name.equals( sPosition ) ) + if ( rPropVal.Name == sPosition ) { css::drawing::EnhancedCustomShapeParameterPair aPosition; if ( rPropVal.Value >>= aPosition ) @@ -3530,7 +3530,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT GetValueForEnhancedCustomShapeHandleParameter( nYPosition, aPosition.Second ); } } - else if ( rPropVal.Name.equals( sMirroredX ) ) + else if ( rPropVal.Name == sMirroredX ) { bool bMirroredX; if ( rPropVal.Value >>= bMirroredX ) @@ -3539,7 +3539,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT nFlags |= 1; } } - else if ( rPropVal.Name.equals( sMirroredY ) ) + else if ( rPropVal.Name == sMirroredY ) { bool bMirroredY; if ( rPropVal.Value >>= bMirroredY ) @@ -3548,7 +3548,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT nFlags |= 2; } } - else if ( rPropVal.Name.equals( sSwitched ) ) + else if ( rPropVal.Name == sSwitched ) { bool bSwitched; if ( rPropVal.Value >>= bSwitched ) @@ -3557,7 +3557,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT nFlags |= 4; } } - else if ( rPropVal.Name.equals( sPolar ) ) + else if ( rPropVal.Name == sPolar ) { css::drawing::EnhancedCustomShapeParameterPair aPolar; if ( rPropVal.Value >>= aPolar ) @@ -3569,7 +3569,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT nFlags |= 8; } } - else if ( rPropVal.Name.equals( sRadiusRangeMinimum ) ) + else if ( rPropVal.Name == sRadiusRangeMinimum ) { nYRangeMin = (sal_Int32)0xff4c0000; // the range of angles seems to be a not nYRangeMax = (sal_Int32)0x00b40000; // used feature, so we are defaulting this @@ -3582,7 +3582,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT nFlags |= 0x2000; } } - else if ( rPropVal.Name.equals( sRadiusRangeMaximum ) ) + else if ( rPropVal.Name == sRadiusRangeMaximum ) { nYRangeMin = (sal_Int32)0xff4c0000; // the range of angles seems to be a not nYRangeMax = (sal_Int32)0x00b40000; // used feature, so we are defaulting this @@ -3595,7 +3595,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT nFlags |= 0x2000; } } - else if ( rPropVal.Name.equals( sRangeXMinimum ) ) + else if ( rPropVal.Name == sRangeXMinimum ) { css::drawing::EnhancedCustomShapeParameter aXRangeMinimum; if ( rPropVal.Value >>= aXRangeMinimum ) @@ -3605,7 +3605,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT nFlags |= 0x20; } } - else if ( rPropVal.Name.equals( sRangeXMaximum ) ) + else if ( rPropVal.Name == sRangeXMaximum ) { css::drawing::EnhancedCustomShapeParameter aXRangeMaximum; if ( rPropVal.Value >>= aXRangeMaximum ) @@ -3615,7 +3615,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT nFlags |= 0x20; } } - else if ( rPropVal.Name.equals( sRangeYMinimum ) ) + else if ( rPropVal.Name == sRangeYMinimum ) { css::drawing::EnhancedCustomShapeParameter aYRangeMinimum; if ( rPropVal.Value >>= aYRangeMinimum ) @@ -3625,7 +3625,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT nFlags |= 0x20; } } - else if ( rPropVal.Name.equals( sRangeYMaximum ) ) + else if ( rPropVal.Name == sRangeYMaximum ) { css::drawing::EnhancedCustomShapeParameter aYRangeMaximum; if ( rPropVal.Value >>= aYRangeMaximum ) @@ -3661,7 +3661,7 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT } } } - else if ( rProp.Name.equals( sAdjustmentValues ) ) + else if ( rProp.Name == sAdjustmentValues ) { // it is required, that the information which handle is polar has already be read, // so we are able to change the polar value to a fixed float diff --git a/filter/source/msfilter/msvbahelper.cxx b/filter/source/msfilter/msvbahelper.cxx index 8f58a82f410d..1e8a6e8ea352 100644 --- a/filter/source/msfilter/msvbahelper.cxx +++ b/filter/source/msfilter/msvbahelper.cxx @@ -148,16 +148,16 @@ SfxObjectShell* findShellForUrl( const OUString& sMacroURLOrPath ) sal_Int32 lastSlashIndex = xModel->getURL().lastIndexOf( '/' ); if ( lastSlashIndex > -1 ) { - bDocNameNoPathMatch = xModel->getURL().copy( lastSlashIndex + 1 ).equals( aURL ); + bDocNameNoPathMatch = xModel->getURL().copy( lastSlashIndex + 1 ) == aURL; if ( !bDocNameNoPathMatch ) { OUString aTmpName = "'" + xModel->getURL().copy( lastSlashIndex + 1 ) + "'"; - bDocNameNoPathMatch = aTmpName.equals( aURL ); + bDocNameNoPathMatch = aTmpName == aURL; } } } - if ( aURL.equals( xModel->getURL() ) || bDocNameNoPathMatch ) + if ( aURL == xModel->getURL() || bDocNameNoPathMatch ) { pFoundShell = pShell; break; diff --git a/filter/source/pdf/pdfuno.cxx b/filter/source/pdf/pdfuno.cxx index e3ce4a7091cc..7d94f7aff0c3 100644 --- a/filter/source/pdf/pdfuno.cxx +++ b/filter/source/pdf/pdfuno.cxx @@ -42,21 +42,21 @@ extern "C" { Reference< XSingleServiceFactory > xFactory; - if( aImplName.equals( PDFFilter_getImplementationName() ) ) + if( aImplName == PDFFilter_getImplementationName() ) { xFactory = createSingleFactory( static_cast< XMultiServiceFactory* >( pServiceManager ), OUString::createFromAscii( pImplName ), PDFFilter_createInstance, PDFFilter_getSupportedServiceNames() ); } - else if( aImplName.equals( PDFDialog_getImplementationName() ) ) + else if( aImplName == PDFDialog_getImplementationName() ) { xFactory = createSingleFactory( static_cast< XMultiServiceFactory* >( pServiceManager ), OUString::createFromAscii( pImplName ), PDFDialog_createInstance, PDFDialog_getSupportedServiceNames() ); } - else if( aImplName.equals( PDFInteractionHandler_getImplementationName() ) ) + else if( aImplName == PDFInteractionHandler_getImplementationName() ) { xFactory = createSingleFactory( static_cast< XMultiServiceFactory* >( pServiceManager ), OUString::createFromAscii( pImplName ), diff --git a/filter/source/t602/filterenv.cxx b/filter/source/t602/filterenv.cxx index 99491384c1c8..73dda29993d8 100644 --- a/filter/source/t602/filterenv.cxx +++ b/filter/source/t602/filterenv.cxx @@ -39,7 +39,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL t602filter_component_getFactory( void * pRet = nullptr; OUString implName = OUString::createFromAscii( pImplName ); - if ( pServiceManager && implName.equals(T602ImportFilter_getImplementationName()) ) + if ( pServiceManager && implName == T602ImportFilter_getImplementationName() ) { Reference< XSingleServiceFactory > xFactory( createSingleFactory( static_cast< XMultiServiceFactory * >( pServiceManager ), @@ -52,7 +52,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL t602filter_component_getFactory( pRet = xFactory.get(); } } - else if ( pServiceManager && implName.equals(T602ImportFilterDialog_getImplementationName()) ) + else if ( pServiceManager && implName == T602ImportFilterDialog_getImplementationName() ) { Reference< XSingleServiceFactory > xFactory( createSingleFactory( static_cast< XMultiServiceFactory * >( pServiceManager ), diff --git a/filter/source/xmlfilteradaptor/genericfilter.cxx b/filter/source/xmlfilteradaptor/genericfilter.cxx index f40ef510ccb2..c2bebaaec1b8 100644 --- a/filter/source/xmlfilteradaptor/genericfilter.cxx +++ b/filter/source/xmlfilteradaptor/genericfilter.cxx @@ -34,7 +34,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL xmlfa_component_getFactory( { void * pRet = nullptr; OUString implName = OUString::createFromAscii( pImplName ); - if ( pServiceManager && implName.equals(XmlFilterAdaptor_getImplementationName()) ) + if ( pServiceManager && implName == XmlFilterAdaptor_getImplementationName() ) { Reference< XSingleServiceFactory > xFactory( createSingleFactory( static_cast< XMultiServiceFactory * >( pServiceManager ), diff --git a/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx b/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx index ef5cc8a6c819..60b08704e95d 100644 --- a/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx +++ b/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx @@ -334,7 +334,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL xsltdlg_component_getFactory( Reference< XSingleServiceFactory > xFactory; OUString implName = OUString::createFromAscii( pImplName ); - if ( implName.equals(XMLFilterDialogComponent_getImplementationName()) ) + if ( implName == XMLFilterDialogComponent_getImplementationName() ) { xFactory = createOneInstanceFactory( static_cast< XMultiServiceFactory * >( pServiceManager ), |