summaryrefslogtreecommitdiff
path: root/unoxml/source/rdf/CURI.cxx
diff options
context:
space:
mode:
authorGert Faller <gertfaller@aliceadsl.fr>2010-11-30 22:54:03 +0100
committerGert Faller <gertfaller@aliceadsl.fr>2010-11-30 22:54:03 +0100
commit0a4c0a6a07340651724379a19ffd42a1472dcde6 (patch)
tree32c41fa310ef954b599c71545f94116c917e76f9 /unoxml/source/rdf/CURI.cxx
parent673abf13b22a422b1b17d3eab80991f429049616 (diff)
RTL_CONSTASCII_USTRINGPARAM in filters 16
Diffstat (limited to 'unoxml/source/rdf/CURI.cxx')
-rw-r--r--unoxml/source/rdf/CURI.cxx32
1 files changed, 16 insertions, 16 deletions
diff --git a/unoxml/source/rdf/CURI.cxx b/unoxml/source/rdf/CURI.cxx
index 7d154876aa3a..414267ffe795 100644
--- a/unoxml/source/rdf/CURI.cxx
+++ b/unoxml/source/rdf/CURI.cxx
@@ -738,8 +738,8 @@ void SAL_CALL CURI::initFromConstant(const sal_Int16 i_Constant)
default:
throw css::lang::IllegalArgumentException(
- ::rtl::OUString::createFromAscii("CURI::initialize: "
- "invalid URIs constant argument"), *this, 0);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CURI::initialize: "
+ "invalid URIs constant argument")), *this, 0);
}
m_Namespace = ::rtl::OUString::createFromAscii(ns).intern();
m_LocalName = ::rtl::OUString::createFromAscii(ln).intern();
@@ -752,8 +752,8 @@ void SAL_CALL CURI::initialize(const css::uno::Sequence< ::com::sun::star::uno::
sal_Int32 len = aArguments.getLength();
if ((len < 1) || (len > 2)) {
throw css::lang::IllegalArgumentException(
- ::rtl::OUString::createFromAscii("CURI::initialize: "
- "must give 1 or 2 argument(s)"), *this, 2);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CURI::initialize: "
+ "must give 1 or 2 argument(s)")), *this, 2);
}
sal_Int16 arg(0);
@@ -763,22 +763,22 @@ void SAL_CALL CURI::initialize(const css::uno::Sequence< ::com::sun::star::uno::
// integer argument: constant from rdf::URIs
if (len != 1) {
throw css::lang::IllegalArgumentException(
- ::rtl::OUString::createFromAscii("CURI::initialize: "
- "must give 1 int argument"), *this, 1);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CURI::initialize: "
+ "must give 1 int argument")), *this, 1);
}
initFromConstant(arg);
return;
}
if (!(aArguments[0] >>= arg0)) {
throw css::lang::IllegalArgumentException(
- ::rtl::OUString::createFromAscii("CURI::initialize: "
- "argument must be string or short"), *this, 0);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CURI::initialize: "
+ "argument must be string or short")), *this, 0);
}
if (len > 1) {
if (!(aArguments[1] >>= arg1)) {
throw css::lang::IllegalArgumentException(
- ::rtl::OUString::createFromAscii("CURI::initialize: "
- "argument must be string"), *this, 1);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CURI::initialize: "
+ "argument must be string")), *this, 1);
}
// just append the parameters and then split them again; seems simplest
arg0 = arg0 + arg1;
@@ -798,8 +798,8 @@ void SAL_CALL CURI::initialize(const css::uno::Sequence< ::com::sun::star::uno::
}
} else {
throw css::lang::IllegalArgumentException(
- ::rtl::OUString::createFromAscii("CURI::initialize: "
- "argument not splittable: no separator [#/:]"), *this, 0);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CURI::initialize: "
+ "argument not splittable: no separator [#/:]")), *this, 0);
}
//FIXME: what is legal?
@@ -807,16 +807,16 @@ void SAL_CALL CURI::initialize(const css::uno::Sequence< ::com::sun::star::uno::
m_Namespace = arg0;
} else {
throw css::lang::IllegalArgumentException(
- ::rtl::OUString::createFromAscii("CURI::initialize: "
- "argument is not valid namespace"), *this, 0);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CURI::initialize: "
+ "argument is not valid namespace")), *this, 0);
}
//FIXME: what is legal?
if (true) {
m_LocalName = arg1;
} else {
throw css::lang::IllegalArgumentException(
- ::rtl::OUString::createFromAscii("CURI::initialize: "
- "argument is not valid local name"), *this, 1);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CURI::initialize: "
+ "argument is not valid local name")), *this, 1);
}
}