diff options
author | Gert Faller <gertfaller@aliceadsl.fr> | 2010-11-30 22:54:03 +0100 |
---|---|---|
committer | Gert Faller <gertfaller@aliceadsl.fr> | 2010-11-30 22:54:03 +0100 |
commit | 0a4c0a6a07340651724379a19ffd42a1472dcde6 (patch) | |
tree | 32c41fa310ef954b599c71545f94116c917e76f9 /unoxml/source/rdf/CLiteral.cxx | |
parent | RTL_CONSTASCII_USTRINGPARAM in filters 15 (diff) | |
download | core-0a4c0a6a07340651724379a19ffd42a1472dcde6.tar.gz core-0a4c0a6a07340651724379a19ffd42a1472dcde6.zip |
RTL_CONSTASCII_USTRINGPARAM in filters 16
Diffstat (limited to 'unoxml/source/rdf/CLiteral.cxx')
-rw-r--r-- | unoxml/source/rdf/CLiteral.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/unoxml/source/rdf/CLiteral.cxx b/unoxml/source/rdf/CLiteral.cxx index 08ebb0a4775c..6867d71ed1c8 100644 --- a/unoxml/source/rdf/CLiteral.cxx +++ b/unoxml/source/rdf/CLiteral.cxx @@ -111,23 +111,23 @@ void SAL_CALL CLiteral::initialize(const css::uno::Sequence< ::com::sun::star::u const sal_Int32 len( aArguments.getLength() ); if (len < 1 || len > 2) { throw css::lang::IllegalArgumentException( - ::rtl::OUString::createFromAscii("CLiteral::initialize: " - "must give 1 or 2 argument(s)"), *this, 2); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CLiteral::initialize: " + "must give 1 or 2 argument(s)")), *this, 2); } ::rtl::OUString arg0; if (!(aArguments[0] >>= arg0)) { throw css::lang::IllegalArgumentException( - ::rtl::OUString::createFromAscii("CLiteral::initialize: " - "argument must be string"), *this, 0); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CLiteral::initialize: " + "argument must be string")), *this, 0); } //FIXME: what is legal? if (true) { m_Value = arg0; } else { throw css::lang::IllegalArgumentException( - ::rtl::OUString::createFromAscii("CLiteral::initialize: " - "argument is not valid literal value"), *this, 0); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CLiteral::initialize: " + "argument is not valid literal value")), *this, 0); } if (len > 1) { @@ -138,21 +138,21 @@ void SAL_CALL CLiteral::initialize(const css::uno::Sequence< ::com::sun::star::u m_Language = arg1; } else { throw css::lang::IllegalArgumentException( - ::rtl::OUString::createFromAscii("CLiteral::initialize: " - "argument is not valid language"), *this, 1); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CLiteral::initialize: " + "argument is not valid language")), *this, 1); } } else if ((aArguments[1] >>= xURI)) { if (xURI.is()) { m_xDatatype = xURI; } else { throw css::lang::IllegalArgumentException( - ::rtl::OUString::createFromAscii("CLiteral::initialize: " - "argument is null"), *this, 1); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CLiteral::initialize: " + "argument is null")), *this, 1); } } else { throw css::lang::IllegalArgumentException( - ::rtl::OUString::createFromAscii("CLiteral::initialize: " - "argument must be string or URI"), *this, 1); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CLiteral::initialize: " + "argument must be string or URI")), *this, 1); } } } |