Use string literal directly.

Change-Id: Ie5841f23c0056f9b9b306e65278f43f415d079b5
This commit is contained in:
Jan Holesovsky
2014-02-13 20:43:40 +01:00
parent 1b2333d1be
commit 8ad55179ea

View File

@@ -736,7 +736,7 @@ sal_Bool SVGFilter::implExportDocument()
// standard line width is based on 1 pixel on a 90 DPI device (0.28222mmm) // standard line width is based on 1 pixel on a 90 DPI device (0.28222mmm)
mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "stroke-width", OUString::number( 28.222 ) ); mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "stroke-width", OUString::number( 28.222 ) );
mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "stroke-linejoin", "round" ); mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "stroke-linejoin", "round" );
mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "xmlns", OUString::createFromAscii(constSvgNamespace) ); mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "xmlns", constSvgNamespace );
mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "xmlns:ooo", "http://xml.openoffice.org/svg/export" ); mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "xmlns:ooo", "http://xml.openoffice.org/svg/export" );
mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "xmlns:xlink", "http://www.w3.org/1999/xlink" ); mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "xmlns:xlink", "http://www.w3.org/1999/xlink" );
mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "xml:space", "preserve" ); mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "xml:space", "preserve" );
@@ -2309,7 +2309,7 @@ void SVGExport::writeMtf( const GDIMetaFile& rMtf )
if( IsUseTinyProfile() ) if( IsUseTinyProfile() )
AddAttribute( XML_NAMESPACE_NONE, "baseProfile", "tiny" ); AddAttribute( XML_NAMESPACE_NONE, "baseProfile", "tiny" );
AddAttribute( XML_NAMESPACE_NONE, "xmlns", OUString::createFromAscii(constSvgNamespace) ); AddAttribute( XML_NAMESPACE_NONE, "xmlns", constSvgNamespace );
AddAttribute( XML_NAMESPACE_NONE, "stroke-width", OUString::number( 28.222 ) ); AddAttribute( XML_NAMESPACE_NONE, "stroke-width", OUString::number( 28.222 ) );
AddAttribute( XML_NAMESPACE_NONE, "stroke-linejoin", "round" ); AddAttribute( XML_NAMESPACE_NONE, "stroke-linejoin", "round" );
AddAttribute( XML_NAMESPACE_NONE, "xml:space", "preserve" ); AddAttribute( XML_NAMESPACE_NONE, "xml:space", "preserve" );