summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/graphicshapecontext.cxx2
-rw-r--r--oox/source/drawingml/textfield.cxx2
-rw-r--r--oox/source/ppt/animationtypes.cxx4
-rw-r--r--oox/source/ppt/commonbehaviorcontext.cxx2
-rw-r--r--oox/source/ppt/pptfilterhelpers.cxx2
-rw-r--r--oox/source/ppt/timenodelistcontext.cxx2
6 files changed, 7 insertions, 7 deletions
diff --git a/oox/source/drawingml/graphicshapecontext.cxx b/oox/source/drawingml/graphicshapecontext.cxx
index 73882f85d45a..4cf3366e1808 100644
--- a/oox/source/drawingml/graphicshapecontext.cxx
+++ b/oox/source/drawingml/graphicshapecontext.cxx
@@ -128,7 +128,7 @@ ContextHandlerRef GraphicalObjectFrameContext::onCreateContext( sal_Int32 aEleme
return new DiagramGraphicDataContext( *this, mpShapePtr );
else if ( sUri == "http://schemas.openxmlformats.org/drawingml/2006/chart" )
return new ChartGraphicDataContext( *this, mpShapePtr, mbEmbedShapesInChart );
- else if ( sUri.compareToAscii( "http://schemas.openxmlformats.org/drawingml/2006/table" ) == 0 )
+ else if ( sUri.equalsAscii( "http://schemas.openxmlformats.org/drawingml/2006/table" ) )
return new table::TableContext( *this, mpShapePtr );
else
{
diff --git a/oox/source/drawingml/textfield.cxx b/oox/source/drawingml/textfield.cxx
index bf566bae218e..76d909b036ef 100644
--- a/oox/source/drawingml/textfield.cxx
+++ b/oox/source/drawingml/textfield.cxx
@@ -119,7 +119,7 @@ void lclCreateTextFields( std::list< Reference< XTextField > > & aFields,
OSL_TRACE( "Exception %s", OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US ).getStr() );
}
}
- else if ( sType.compareToAscii( "slidenum" ) == 0 )
+ else if ( sType.equalsAscii( "slidenum" ) )
{
xIface = xFactory->createInstance( "com.sun.star.text.TextField.PageNumber" );
aFields.push_back( Reference< XTextField > ( xIface, UNO_QUERY ) );
diff --git a/oox/source/ppt/animationtypes.cxx b/oox/source/ppt/animationtypes.cxx
index a6ba78872f76..4992fdd338f4 100644
--- a/oox/source/ppt/animationtypes.cxx
+++ b/oox/source/ppt/animationtypes.cxx
@@ -34,7 +34,7 @@ namespace oox { namespace ppt {
Any GetTime( const OUString & val )
{
Any aDuration;
- if( val.compareToAscii( "indefinite" ) == 0 )
+ if( val.equalsAscii( "indefinite" ) )
{
aDuration <<= Timing_INDEFINITE;
}
@@ -50,7 +50,7 @@ Any GetTime( const OUString & val )
Any GetTimeAnimateValueTime( const OUString & val )
{
Any aPercent;
- if( val.compareToAscii( "indefinite" ) == 0 )
+ if( val.equalsAscii( "indefinite" ) )
{
aPercent <<= Timing_INDEFINITE;
}
diff --git a/oox/source/ppt/commonbehaviorcontext.cxx b/oox/source/ppt/commonbehaviorcontext.cxx
index dd19deef6259..5cc23c562a08 100644
--- a/oox/source/ppt/commonbehaviorcontext.cxx
+++ b/oox/source/ppt/commonbehaviorcontext.cxx
@@ -89,7 +89,7 @@ namespace oox { namespace ppt {
const ImplAttributeNameConversion *attrConv = gImplConversionList;
while( attrConv->mpMSName != NULL )
{
- if(msCurrentAttribute.compareToAscii( attrConv->mpMSName ) == 0 )
+ if(msCurrentAttribute.equalsAscii( attrConv->mpMSName ) )
{
Attribute attr;
attr.name = OUString::intern( attrConv->mpAPIName,
diff --git a/oox/source/ppt/pptfilterhelpers.cxx b/oox/source/ppt/pptfilterhelpers.cxx
index 97e3e62858ec..e4f45fbcafa9 100644
--- a/oox/source/ppt/pptfilterhelpers.cxx
+++ b/oox/source/ppt/pptfilterhelpers.cxx
@@ -77,7 +77,7 @@ namespace oox { namespace ppt {
while( p->mpName )
{
- if( rName.compareToAscii( p->mpName ) == 0 )
+ if( rName.equalsAscii( p->mpName ) )
return p;
p++;
diff --git a/oox/source/ppt/timenodelistcontext.cxx b/oox/source/ppt/timenodelistcontext.cxx
index 5e7227a95f0b..ca7f1cde248b 100644
--- a/oox/source/ppt/timenodelistcontext.cxx
+++ b/oox/source/ppt/timenodelistcontext.cxx
@@ -269,7 +269,7 @@ namespace oox { namespace ppt {
{
nCommand = EffectCommands::PLAY;
}
- else if( msCommand.compareToAscii( "playFrom" ) == 0 )
+ else if( msCommand.equalsAscii( "playFrom" ) )
{
const OUString aMediaTime( msCommand.copy( 9, msCommand.getLength() - 10 ) );
rtl_math_ConversionStatus eStatus;