[Libreoffice-commits] core.git: filter/source

Jan Holesovsky kendy at collabora.com
Thu Feb 13 20:50:38 CET 2014


 filter/source/svg/svgexport.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 8ad55179ea0158cb64ad3fe000aa7d3fb0317ccf
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Thu Feb 13 20:43:40 2014 +0100

    Use string literal directly.
    
    Change-Id: Ie5841f23c0056f9b9b306e65278f43f415d079b5

diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx
index 07bebca..9bad77e 100644
--- a/filter/source/svg/svgexport.cxx
+++ b/filter/source/svg/svgexport.cxx
@@ -736,7 +736,7 @@ sal_Bool SVGFilter::implExportDocument()
     // 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-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:xlink", "http://www.w3.org/1999/xlink" );
     mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "xml:space", "preserve" );
@@ -2309,7 +2309,7 @@ void SVGExport::writeMtf( const GDIMetaFile& rMtf )
     if( IsUseTinyProfile() )
          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-linejoin", "round" );
     AddAttribute( XML_NAMESPACE_NONE, "xml:space", "preserve" );


More information about the Libreoffice-commits mailing list