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


regards
From 2bf8ae72c9787a733cb2992d8c409593fb1f7bab Mon Sep 17 00:00:00 2001
From: pjacquod <pjacquod@alumni.ethz.ch>
Date: Mon, 15 Nov 2010 23:57:03 +0100
Subject: [PATCH 06/12] RTL_CONSTASCII_USTRINGPARAM components xpathlib

components/forms/source/xforms/xpathlib should now be OK
---
 forms/source/xforms/xpathlib/extension.cxx |    4 ++--
 forms/source/xforms/xpathlib/xpathlib.cxx  |    8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/forms/source/xforms/xpathlib/extension.cxx b/forms/source/xforms/xpathlib/extension.cxx
index 26dfb55..8c29f0f 100644
--- a/forms/source/xforms/xpathlib/extension.cxx
+++ b/forms/source/xforms/xpathlib/extension.cxx
@@ -54,14 +54,14 @@ Reference< XInterface > SAL_CALL CLibxml2XFormsExtension::Create(
 ::rtl::OUString SAL_CALL CLibxml2XFormsExtension::getImplementationName_Static()
 {
     // printf("_implname_\n");
-    return ::rtl::OUString::createFromAscii("com.sun.star.comp.xml.xpath.XFormsExtension");
+    return 
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.xml.xpath.XFormsExtension") );
 }
 
 Sequence< ::rtl::OUString > SAL_CALL CLibxml2XFormsExtension::getSupportedServiceNames_Static()
 {
     // printf("_services_\n");
     Sequence< ::rtl::OUString > aSequence(1);
-    aSequence[0] = ::rtl::OUString::createFromAscii("com.sun.star.xml.xpath.XPathExtension");
+    aSequence[0] = 
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.xpath.XPathExtension") );
     return aSequence;
 }
 
diff --git a/forms/source/xforms/xpathlib/xpathlib.cxx b/forms/source/xforms/xpathlib/xpathlib.cxx
index 21170a6..1b212af 100644
--- a/forms/source/xforms/xpathlib/xpathlib.cxx
+++ b/forms/source/xforms/xpathlib/xpathlib.cxx
@@ -311,10 +311,10 @@ static sal_Bool parseDateTime(const ::rtl::OUString& aString, DateTime& 
aDateTim
     sal_Int32 nDateLength = 10;
     sal_Int32 nTimeLength = 8;
 
-    ::rtl::OUString aDateTimeSep = ::rtl::OUString::createFromAscii("T");
-    ::rtl::OUString aDateSep = ::rtl::OUString::createFromAscii("-");
-    ::rtl::OUString aTimeSep = ::rtl::OUString::createFromAscii(":");
-    ::rtl::OUString aUTCString = ::rtl::OUString::createFromAscii("Z");
+    ::rtl::OUString aDateTimeSep = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("T") );
+    ::rtl::OUString aDateSep = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("-") );
+    ::rtl::OUString aTimeSep = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(":") );
+    ::rtl::OUString aUTCString = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Z") );
 
     ::rtl::OUString aDateString = aDateTimeString.copy(0, nDateLength);
     ::rtl::OUString aTimeString = aDateTimeString.copy(nDateLength+1, nTimeLength);
-- 
1.7.1


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.