summaryrefslogtreecommitdiff
path: root/oox/source/vml/vmlshapecontext.cxx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-01-20 10:33:13 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-01-20 11:31:12 +0100
commit4dd5c0b6b7b0df2b469635c96bc22fc2076f1997 (patch)
treef5143663aea7c9fbbb5567887d9c0ff594316ae0 /oox/source/vml/vmlshapecontext.cxx
parentd870d4fa5d7179b05286f26ac9361074730f89e2 (diff)
Replace suitable equalsAscii calls with equalsAsciiL.
Done with sed -i 's%\(\.equalsAscii\)(\(\s\?"[^"]\+"\)\(\s\?\))%\1L(\3RTL_CONSTASCII_STRINGPARAM(\2\3)\3)%g'.
Diffstat (limited to 'oox/source/vml/vmlshapecontext.cxx')
-rw-r--r--oox/source/vml/vmlshapecontext.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/oox/source/vml/vmlshapecontext.cxx b/oox/source/vml/vmlshapecontext.cxx
index 9a20ab40151c..610960c5d486 100644
--- a/oox/source/vml/vmlshapecontext.cxx
+++ b/oox/source/vml/vmlshapecontext.cxx
@@ -265,13 +265,13 @@ void ShapeTypeContext::setStyle( const OUString& rStyle )
OUString aName, aValue;
if( ConversionHelper::separatePair( aName, aValue, rStyle.getToken( 0, ';', nIndex ), ':' ) )
{
- if( aName.equalsAscii( "position" ) ) mrTypeModel.maPosition = aValue;
- else if( aName.equalsAscii( "left" ) ) mrTypeModel.maLeft = aValue;
- else if( aName.equalsAscii( "top" ) ) mrTypeModel.maTop = aValue;
- else if( aName.equalsAscii( "width" ) ) mrTypeModel.maWidth = aValue;
- else if( aName.equalsAscii( "height" ) ) mrTypeModel.maHeight = aValue;
- else if( aName.equalsAscii( "margin-left" ) ) mrTypeModel.maMarginLeft = aValue;
- else if( aName.equalsAscii( "margin-top" ) ) mrTypeModel.maMarginTop = aValue;
+ if( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "position" ) ) ) mrTypeModel.maPosition = aValue;
+ else if( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "left" ) ) ) mrTypeModel.maLeft = aValue;
+ else if( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "top" ) ) ) mrTypeModel.maTop = aValue;
+ else if( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "width" ) ) ) mrTypeModel.maWidth = aValue;
+ else if( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "height" ) ) ) mrTypeModel.maHeight = aValue;
+ else if( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "margin-left" ) ) ) mrTypeModel.maMarginLeft = aValue;
+ else if( aName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "margin-top" ) ) ) mrTypeModel.maMarginTop = aValue;
}
}
}