summaryrefslogtreecommitdiff
path: root/unoxml/source/rdf/CLiteral.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unoxml/source/rdf/CLiteral.cxx')
-rw-r--r--unoxml/source/rdf/CLiteral.cxx18
1 files changed, 6 insertions, 12 deletions
diff --git a/unoxml/source/rdf/CLiteral.cxx b/unoxml/source/rdf/CLiteral.cxx
index 6643df240acd..fc1b2044ec3d 100644
--- a/unoxml/source/rdf/CLiteral.cxx
+++ b/unoxml/source/rdf/CLiteral.cxx
@@ -93,23 +93,20 @@ void SAL_CALL CLiteral::initialize(const css::uno::Sequence< css::uno::Any > & a
const sal_Int32 len( aArguments.getLength() );
if (len < 1 || len > 2) {
throw css::lang::IllegalArgumentException(
- OUString("CLiteral::initialize: "
- "must give 1 or 2 argument(s)"), *this, 2);
+ "CLiteral::initialize: must give 1 or 2 argument(s)", *this, 2);
}
OUString arg0;
if (!(aArguments[0] >>= arg0)) {
throw css::lang::IllegalArgumentException(
- OUString("CLiteral::initialize: "
- "argument must be string"), *this, 0);
+ "CLiteral::initialize: argument must be string", *this, 0);
}
//FIXME: what is legal?
if (true) {
m_Value = arg0;
} else {
throw css::lang::IllegalArgumentException(
- OUString("CLiteral::initialize: "
- "argument is not valid literal value"), *this, 0);
+ "CLiteral::initialize: argument is not valid literal value", *this, 0);
}
if (len > 1) {
@@ -120,21 +117,18 @@ void SAL_CALL CLiteral::initialize(const css::uno::Sequence< css::uno::Any > & a
m_Language = arg1;
} else {
throw css::lang::IllegalArgumentException(
- OUString("CLiteral::initialize: "
- "argument is not valid language"), *this, 1);
+ "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(
- OUString("CLiteral::initialize: "
- "argument is null"), *this, 1);
+ "CLiteral::initialize: argument is null", *this, 1);
}
} else {
throw css::lang::IllegalArgumentException(
- OUString("CLiteral::initialize: "
- "argument must be string or URI"), *this, 1);
+ "CLiteral::initialize: argument must be string or URI", *this, 1);
}
}
}