summaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-22 11:13:17 +0200
committerNoel Grandin <noel@peralex.com>2013-11-22 11:23:05 +0200
commitfc87d57f04132658e1c3481e92fe36e1183423ed (patch)
tree473a9dd4861e878cdc6e49f394b298df8732c3a3 /filter
parentBe more realistic (diff)
downloadcore-fc87d57f04132658e1c3481e92fe36e1183423ed.tar.gz
core-fc87d57f04132658e1c3481e92fe36e1183423ed.zip
replace OUString::reverseCompareTo("xxx") with operator==
operator== with OUString and literal internally does a reverse-compare (via OUString::equalsAsciiL) anyway, so no need to keep explicit calls to OUString::reverseCompareTo with literal argument Change-Id: I799d9bcd0d5c308a9547ce7cacb2db6042fdb643
Diffstat (limited to 'filter')
-rw-r--r--filter/source/flash/swfexporter.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/filter/source/flash/swfexporter.cxx b/filter/source/flash/swfexporter.cxx
index 85c18b4f9081..5382f8473752 100644
--- a/filter/source/flash/swfexporter.cxx
+++ b/filter/source/flash/swfexporter.cxx
@@ -545,12 +545,12 @@ void FlashExporter::exportShape( Reference< XShape >& xShape, bool bMaster )
if( bMaster )
{
OUString aShapeType( xShape->getShapeType() );
- if( (0 == aShapeType.reverseCompareTo( "com.sun.star.presentation.TitleTextShape" )) ||
- (0 == aShapeType.reverseCompareTo( "com.sun.star.presentation.OutlinerShape" )) ||
- (0 == aShapeType.reverseCompareTo( "com.sun.star.presentation.HeaderShape" )) ||
- (0 == aShapeType.reverseCompareTo( "com.sun.star.presentation.FooterShape" )) ||
- (0 == aShapeType.reverseCompareTo( "com.sun.star.presentation.SlideNumberShape" )) ||
- (0 == aShapeType.reverseCompareTo( "com.sun.star.presentation.DateTimeShape" )))
+ if( aShapeType == "com.sun.star.presentation.TitleTextShape" ||
+ aShapeType == "com.sun.star.presentation.OutlinerShape" ||
+ aShapeType == "com.sun.star.presentation.HeaderShape" ||
+ aShapeType == "com.sun.star.presentation.FooterShape" ||
+ aShapeType == "com.sun.star.presentation.SlideNumberShape" ||
+ aShapeType == "com.sun.star.presentation.DateTimeShape" )
return;
}
}