Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


Hello,

This changes the only occurrence in writer/starmath.
The wiki entry does not mention it, but should UNOOUSTRING::createFromAscii (not OUString) be replaced as well?
There are two of that in starmath

Jani
From da30daf2c9cf9d1f19da7b674a8896fc5fa6e453 Mon Sep 17 00:00:00 2001
From: Jani Monoses <jani@ubuntu.com>
Date: Sat, 30 Oct 2010 02:12:24 +0300
Subject: [PATCH 2/2] use RTL_CONSTASCII_USTRINGPARAM

---
 starmath/source/mathmlexport.cxx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx
index 97088bb..c5fdd81 100644
--- a/starmath/source/mathmlexport.cxx
+++ b/starmath/source/mathmlexport.cxx
@@ -621,7 +621,7 @@ sal_uInt32 SmXMLExport::exportDoc(enum XMLTokenEnum eClass)
 
         // make use of a default namespace
         ResetNamespaceMap();    // Math doesn't need namespaces from xmloff, since it now uses 
default namespaces (because that is common with current MathML usage in the web)
-        _GetNamespaceMap().Add( OUString::createFromAscii(""), GetXMLToken(XML_N_MATH), 
XML_NAMESPACE_MATH );
+        _GetNamespaceMap().Add( OUString(RTL_CONSTASCII_USTRINGPARAM("")), 
GetXMLToken(XML_N_MATH), XML_NAMESPACE_MATH );
 
         rList.AddAttribute(GetNamespaceMap().GetAttrNameByKey(XML_NAMESPACE_MATH_IDX),
                 GetNamespaceMap().GetNameByKey( XML_NAMESPACE_MATH_IDX));
-- 
1.7.0.4


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.