diff options
author | Szabolcs Dezsi <dezsiszabi@hotmail.com> | 2012-04-06 15:05:52 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2012-04-06 15:07:41 +0200 |
commit | 743f22045c4ec08c46c259fc0ba240194a391457 (patch) | |
tree | faed42bb31c4ee767619eb5c3ebd4dec0a41fa03 /chart2 | |
parent | 0c6ebe5d225d6a655f078977455cec6d0a3afa6e (diff) |
Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used:
find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\)) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/main/ChartDropTargetHelper.cxx | 2 | ||||
-rw-r--r-- | chart2/source/controller/main/CommandDispatchContainer.cxx | 2 | ||||
-rw-r--r-- | chart2/source/model/main/ChartModel_Persistence.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/chart2/source/controller/main/ChartDropTargetHelper.cxx b/chart2/source/controller/main/ChartDropTargetHelper.cxx index 007bbf1b4c54..17d413aee3be 100644 --- a/chart2/source/controller/main/ChartDropTargetHelper.cxx +++ b/chart2/source/controller/main/ChartDropTargetHelper.cxx @@ -150,7 +150,7 @@ sal_Int8 ChartDropTargetHelper::ExecuteDrop( const ExecuteDropEvent& rEvt ) beans::PropertyValue * pCellRange = 0; for( sal_Int32 i=0; i<aArguments.getLength(); ++i ) { - if( aArguments[i].Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("CellRangeRepresentation"))) + if ( aArguments[i].Name == "CellRangeRepresentation" ) { pCellRange = (aArguments.getArray() + i); aArguments[i].Value >>= aOldRange; diff --git a/chart2/source/controller/main/CommandDispatchContainer.cxx b/chart2/source/controller/main/CommandDispatchContainer.cxx index 3e1b1d05c55f..33af33fd44aa 100644 --- a/chart2/source/controller/main/CommandDispatchContainer.cxx +++ b/chart2/source/controller/main/CommandDispatchContainer.cxx @@ -158,7 +158,7 @@ Sequence< Reference< frame::XDispatch > > CommandDispatchContainer::getDispatche for( sal_Int32 nPos = 0; nPos < nCount; ++nPos ) { - if( aDescriptors[ nPos ].FrameName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("_self"))) + if ( aDescriptors[ nPos ].FrameName == "_self" ) aRet[ nPos ] = getDispatchForURL( aDescriptors[ nPos ].FeatureURL ); } return aRet; diff --git a/chart2/source/model/main/ChartModel_Persistence.cxx b/chart2/source/model/main/ChartModel_Persistence.cxx index e97e82d00169..8bcdb3ce157e 100644 --- a/chart2/source/model/main/ChartModel_Persistence.cxx +++ b/chart2/source/model/main/ChartModel_Persistence.cxx @@ -312,7 +312,7 @@ void SAL_CALL ChartModel::storeToURL( uno::Sequence< beans::PropertyValue > aReducedMediaDescriptor( aMediaDescriptorHelper.getReducedForModel() ); - if( rURL.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("private:stream"))) + if ( rURL == "private:stream" ) { try { |