summaryrefslogtreecommitdiff
path: root/framework/source/fwi
diff options
context:
space:
mode:
authorSzabolcs Dezsi <dezsiszabi@hotmail.com>2012-04-06 14:28:18 +0200
committerJan Holesovsky <kendy@suse.cz>2012-04-06 14:30:05 +0200
commit8a01ee624318ac08800af89d988971114637a04e (patch)
treee4acf35e42ab0c1d0b593bd8970fa2c435f90c95 /framework/source/fwi
parent6cf547f02c79278430ee75483a3128076cfc609e (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 'framework/source/fwi')
-rw-r--r--framework/source/fwi/uielement/constitemcontainer.cxx4
-rw-r--r--framework/source/fwi/uielement/itemcontainer.cxx4
-rw-r--r--framework/source/fwi/uielement/rootitemcontainer.cxx2
3 files changed, 5 insertions, 5 deletions
diff --git a/framework/source/fwi/uielement/constitemcontainer.cxx b/framework/source/fwi/uielement/constitemcontainer.cxx
index 150481e410f0..6ead1feee3f3 100644
--- a/framework/source/fwi/uielement/constitemcontainer.cxx
+++ b/framework/source/fwi/uielement/constitemcontainer.cxx
@@ -197,7 +197,7 @@ ConstItemContainer::ConstItemContainer( const Reference< XIndexAccess >& rSource
Reference< XIndexAccess > xIndexAccess;
for ( sal_Int32 j = 0; j < aPropSeq.getLength(); j++ )
{
- if ( aPropSeq[j].Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ItemDescriptorContainer" ) ))
+ if ( aPropSeq[j].Name == "ItemDescriptorContainer" )
{
aPropSeq[j].Value >>= xIndexAccess;
nContainerIndex = j;
@@ -234,7 +234,7 @@ void ConstItemContainer::copyItemContainer( const std::vector< Sequence< Propert
Reference< XIndexAccess > xIndexAccess;
for ( sal_Int32 j = 0; j < aPropSeq.getLength(); j++ )
{
- if ( aPropSeq[j].Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ItemDescriptorContainer" ) ))
+ if ( aPropSeq[j].Name == "ItemDescriptorContainer" )
{
aPropSeq[j].Value >>= xIndexAccess;
nContainerIndex = j;
diff --git a/framework/source/fwi/uielement/itemcontainer.cxx b/framework/source/fwi/uielement/itemcontainer.cxx
index 6e0dce68852d..ede715b89e08 100644
--- a/framework/source/fwi/uielement/itemcontainer.cxx
+++ b/framework/source/fwi/uielement/itemcontainer.cxx
@@ -81,7 +81,7 @@ ItemContainer::ItemContainer( const Reference< XIndexAccess >& rSourceContainer,
Reference< XIndexAccess > xIndexAccess;
for ( sal_Int32 j = 0; j < aPropSeq.getLength(); j++ )
{
- if ( aPropSeq[j].Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ItemDescriptorContainer" ) ))
+ if ( aPropSeq[j].Name == "ItemDescriptorContainer" )
{
aPropSeq[j].Value >>= xIndexAccess;
nContainerIndex = j;
@@ -117,7 +117,7 @@ void ItemContainer::copyItemContainer( const std::vector< Sequence< PropertyValu
Reference< XIndexAccess > xIndexAccess;
for ( sal_Int32 j = 0; j < aPropSeq.getLength(); j++ )
{
- if ( aPropSeq[j].Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ItemDescriptorContainer" ) ))
+ if ( aPropSeq[j].Name == "ItemDescriptorContainer" )
{
aPropSeq[j].Value >>= xIndexAccess;
nContainerIndex = j;
diff --git a/framework/source/fwi/uielement/rootitemcontainer.cxx b/framework/source/fwi/uielement/rootitemcontainer.cxx
index d52e7c4f624f..2aa7b7cca92c 100644
--- a/framework/source/fwi/uielement/rootitemcontainer.cxx
+++ b/framework/source/fwi/uielement/rootitemcontainer.cxx
@@ -126,7 +126,7 @@ RootItemContainer::RootItemContainer( const Reference< XIndexAccess >& rSourceCo
Reference< XIndexAccess > xIndexAccess;
for ( sal_Int32 j = 0; j < aPropSeq.getLength(); j++ )
{
- if ( aPropSeq[j].Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ItemDescriptorContainer" ) ))
+ if ( aPropSeq[j].Name == "ItemDescriptorContainer" )
{
aPropSeq[j].Value >>= xIndexAccess;
nContainerIndex = j;