Kaydet (Commit) 5122196a authored tarafından Julien Nabet's avatar Julien Nabet

Avoid temporary rtl::OUString

üst 39c2a52d
...@@ -351,7 +351,7 @@ extern "C" ...@@ -351,7 +351,7 @@ extern "C"
OUString aImplementationName = OUString::createFromAscii( pImplName ); OUString aImplementationName = OUString::createFromAscii( pImplName );
if (aImplementationName == OUString(RTL_CONSTASCII_USTRINGPARAM( IMPLEMENTATION_NAME )) ) if (aImplementationName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM( IMPLEMENTATION_NAME )) )
{ {
xRet = createSingleFactory( xSMgr, aImplementationName, xRet = createSingleFactory( xSMgr, aImplementationName,
HwpImportFilter_CreateInstance, HwpImportFilter_CreateInstance,
......
...@@ -383,7 +383,7 @@ Reference< XShape > Shape::createAndInsert( ...@@ -383,7 +383,7 @@ Reference< XShape > Shape::createAndInsert(
aTransformation.scale(1/360.0, 1/360.0); aTransformation.scale(1/360.0, 1/360.0);
// special for lineshape // special for lineshape
if ( aServiceName == OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.LineShape")) ) if ( aServiceName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.LineShape")) )
{ {
::basegfx::B2DPolygon aPoly; ::basegfx::B2DPolygon aPoly;
aPoly.insert( 0, ::basegfx::B2DPoint( 0, 0 ) ); aPoly.insert( 0, ::basegfx::B2DPoint( 0, 0 ) );
...@@ -404,7 +404,7 @@ Reference< XShape > Shape::createAndInsert( ...@@ -404,7 +404,7 @@ Reference< XShape > Shape::createAndInsert(
maShapeProperties[ PROP_PolyPolygon ] <<= aPolyPolySequence; maShapeProperties[ PROP_PolyPolygon ] <<= aPolyPolySequence;
} }
else if ( aServiceName == OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.ConnectorShape")) ) else if ( aServiceName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.ConnectorShape")) )
{ {
::basegfx::B2DPolygon aPoly; ::basegfx::B2DPolygon aPoly;
aPoly.insert( 0, ::basegfx::B2DPoint( 0, 0 ) ); aPoly.insert( 0, ::basegfx::B2DPoint( 0, 0 ) );
......
...@@ -52,13 +52,13 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL fastsax_component_getFactory( ...@@ -52,13 +52,13 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL fastsax_component_getFactory(
OUString aImplementationName( OUString::createFromAscii( pImplName ) ); OUString aImplementationName( OUString::createFromAscii( pImplName ) );
if (aImplementationName == OUString( RTL_CONSTASCII_USTRINGPARAM( PARSER_IMPLEMENTATION_NAME ) ) ) if (aImplementationName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( PARSER_IMPLEMENTATION_NAME ) ) )
{ {
xRet = createSingleFactory( xSMgr, aImplementationName, xRet = createSingleFactory( xSMgr, aImplementationName,
FastSaxParser_CreateInstance, FastSaxParser_CreateInstance,
FastSaxParser::getSupportedServiceNames_Static() ); FastSaxParser::getSupportedServiceNames_Static() );
} }
else if (aImplementationName == OUString( RTL_CONSTASCII_USTRINGPARAM( SERIALIZER_IMPLEMENTATION_NAME ) ) ) else if (aImplementationName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( SERIALIZER_IMPLEMENTATION_NAME ) ) )
{ {
xRet = createSingleFactory( xSMgr, aImplementationName, xRet = createSingleFactory( xSMgr, aImplementationName,
FastSaxSerializer_CreateInstance, FastSaxSerializer_CreateInstance,
......
...@@ -231,7 +231,7 @@ namespace DOM ...@@ -231,7 +231,7 @@ namespace DOM
newprefix = attr_qname.copy(attr_qname.indexOf(':')+1); newprefix = attr_qname.copy(attr_qname.indexOf(':')+1);
aNSMap.insert(NSMap::value_type(newprefix, attr_value)); aNSMap.insert(NSMap::value_type(newprefix, attr_value));
} }
else if (attr_qname == OUString(RTL_CONSTASCII_USTRINGPARAM("xmlns"))) else if (attr_qname.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("xmlns")))
{ {
// new default prefix // new default prefix
aNSMap.insert(NSMap::value_type(OUString(), attr_value)); aNSMap.insert(NSMap::value_type(OUString(), attr_value));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment