[PATCH 06/12] RTL_CONSTASCII_USTRINGPARAM components xpathlib

pjacquod pjacquod at alumni.ethz.ch
Mon Nov 15 14:57:03 PST 2010


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


--------------020504010209070407070901--


More information about the LibreOffice mailing list