summaryrefslogtreecommitdiffstats
path: root/canvas
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-01-20 11:35:10 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-01-20 11:35:10 +0100
commit2fb4d4800c3064c3c7b8573ad39c00d51d9bc41b (patch)
tree431419e56b4d5851fc57fe472186aa233af2d593 /canvas
parentdon't leak PPDParsers (diff)
downloadcore-2fb4d4800c3064c3c7b8573ad39c00d51d9bc41b.tar.gz
core-2fb4d4800c3064c3c7b8573ad39c00d51d9bc41b.zip
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 'canvas')
-rw-r--r--canvas/source/tools/parametricpolypolygon.cxx20
-rw-r--r--canvas/workben/canvasdemo.cxx4
2 files changed, 12 insertions, 12 deletions
diff --git a/canvas/source/tools/parametricpolypolygon.cxx b/canvas/source/tools/parametricpolypolygon.cxx
index 40fbdf9922f1..41b0fe29e11d 100644
--- a/canvas/source/tools/parametricpolypolygon.cxx
+++ b/canvas/source/tools/parametricpolypolygon.cxx
@@ -85,46 +85,46 @@ namespace canvas
beans::PropertyValue aProp;
if( (rArgs[i] >>= aProp) )
{
- if( aProp.Name.equalsAscii("Colors") )
+ if( aProp.Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Colors")) )
{
aProp.Value >>= colorSequence;
}
- else if( aProp.Name.equalsAscii("Stops") )
+ else if( aProp.Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Stops")) )
{
aProp.Value >>= colorStops;
}
- else if( aProp.Name.equalsAscii("AspectRatio") )
+ else if( aProp.Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("AspectRatio")) )
{
aProp.Value >>= fAspectRatio;
}
}
}
- if( rServiceName.equalsAscii("LinearGradient") )
+ if( rServiceName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("LinearGradient")) )
{
return createLinearHorizontalGradient(rDevice, colorSequence, colorStops);
}
- else if( rServiceName.equalsAscii("EllipticalGradient") )
+ else if( rServiceName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("EllipticalGradient")) )
{
return createEllipticalGradient(rDevice, colorSequence, colorStops, fAspectRatio);
}
- else if( rServiceName.equalsAscii("RectangularGradient") )
+ else if( rServiceName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("RectangularGradient")) )
{
return createRectangularGradient(rDevice, colorSequence, colorStops, fAspectRatio);
}
- else if( rServiceName.equalsAscii("VerticalLineHatch") )
+ else if( rServiceName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("VerticalLineHatch")) )
{
// TODO: NYI
}
- else if( rServiceName.equalsAscii("OrthogonalLinesHatch") )
+ else if( rServiceName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("OrthogonalLinesHatch")) )
{
// TODO: NYI
}
- else if( rServiceName.equalsAscii("ThreeCrossingLinesHatch") )
+ else if( rServiceName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("ThreeCrossingLinesHatch")) )
{
// TODO: NYI
}
- else if( rServiceName.equalsAscii("FourCrossingLinesHatch") )
+ else if( rServiceName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("FourCrossingLinesHatch")) )
{
// TODO: NYI
}
diff --git a/canvas/workben/canvasdemo.cxx b/canvas/workben/canvasdemo.cxx
index 57744ba15807..db72a7df4079 100644
--- a/canvas/workben/canvasdemo.cxx
+++ b/canvas/workben/canvasdemo.cxx
@@ -657,8 +657,8 @@ void DemoApp::Main()
{
::rtl::OUString aParam = GetCommandLineParam( i );
- if( aParam.equalsAscii( "--help" ) ||
- aParam.equalsAscii( "-h" ) )
+ if( aParam.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "--help" ) ) ||
+ aParam.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "-h" ) ) )
bHelp = true;
}