diff options
author | pjacquod <pjacquod@alumni.ethz.ch> | 2010-11-15 23:57:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-17 16:28:24 +0000 |
commit | 7f459c9492db8921deefa4bb7a508ff5bb104f1c (patch) | |
tree | fcd25e8fd6d7a6db944ae821b28722e7b794456c /forms | |
parent | 7f36ddf5182da72bfb6039306787c41136173f1f (diff) |
RTL_CONSTASCII_USTRINGPARAM components xpathlib
components/forms/source/xforms/xpathlib should now be OK
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/xforms/xpathlib/extension.cxx | 4 | ||||
-rw-r--r-- | 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 26bc2b7640fc..47da09db02c3 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 49918c7c8b6f..e91fa1a043f8 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_CONSTASCII_USTRINGPARAM("T")); + ::rtl::OUString aDateSep(RTL_CONSTASCII_USTRINGPARAM("-")); + ::rtl::OUString aTimeSep(RTL_CONSTASCII_USTRINGPARAM(":")); + ::rtl::OUString aUTCString(RTL_CONSTASCII_USTRINGPARAM("Z")); ::rtl::OUString aDateString = aDateTimeString.copy(0, nDateLength); ::rtl::OUString aTimeString = aDateTimeString.copy(nDateLength+1, nTimeLength); |