diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-07-23 13:09:55 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-07-23 13:09:55 +0200 |
commit | 2270f32c6bc055ab79c075015843124a5370e020 (patch) | |
tree | bf58e350ed41ea83b2f13e05f3afb879280c7cdd /configmgr/source/valueparser.cxx | |
parent | bb67e709b70919efb41ec41e93dd92953dc6a003 (diff) |
Clean up redundant explicit OUString(...) ctors
Change-Id: Ieb5d4a1d669e0472ec08704c618a9d9c1d30b77f
Diffstat (limited to 'configmgr/source/valueparser.cxx')
-rw-r--r-- | configmgr/source/valueparser.cxx | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/configmgr/source/valueparser.cxx b/configmgr/source/valueparser.cxx index 1deced03c59f..67a65a63148b 100644 --- a/configmgr/source/valueparser.cxx +++ b/configmgr/source/valueparser.cxx @@ -171,8 +171,7 @@ template< typename T > css::uno::Any parseSingleValue( T val; if (!parseValue(text, &val)) { throw css::uno::RuntimeException( - OUString("invalid value"), - css::uno::Reference< css::uno::XInterface >()); + "invalid value", css::uno::Reference< css::uno::XInterface >()); } return css::uno::makeAny(val); } @@ -196,7 +195,7 @@ template< typename T > css::uno::Any parseListValue( xmlreader::Span(t.begin, i == -1 ? t.length : i), &val)) { throw css::uno::RuntimeException( - OUString("invalid value"), + "invalid value", css::uno::Reference< css::uno::XInterface >()); } seq.push_back(val); @@ -216,7 +215,7 @@ css::uno::Any parseValue( switch (type) { case TYPE_ANY: throw css::uno::RuntimeException( - OUString("invalid value of type any"), + "invalid value of type any", css::uno::Reference< css::uno::XInterface >()); case TYPE_BOOLEAN: return parseSingleValue< sal_Bool >(text); @@ -250,7 +249,7 @@ css::uno::Any parseValue( default: assert(false); throw css::uno::RuntimeException( - OUString("this cannot happen"), + "this cannot happen", css::uno::Reference< css::uno::XInterface >()); } } @@ -333,8 +332,7 @@ bool ValueParser::startElement( pad_.add(RTL_CONSTASCII_STRINGPARAM("\xEF\xBF\xBF")); } else { throw css::uno::RuntimeException( - (OUString("bad unicode scalar attribute in ") + - reader.getUrl()), + "bad unicode scalar attribute in " + reader.getUrl(), css::uno::Reference< css::uno::XInterface >()); } state_ = State(state_ + 1); @@ -345,9 +343,7 @@ bool ValueParser::startElement( break; } throw css::uno::RuntimeException( - (OUString("bad member <") + - name.convertFromUtf8() + - OUString("> in ") + reader.getUrl()), + "bad member <" + name.convertFromUtf8() + "> in " + reader.getUrl(), css::uno::Reference< css::uno::XInterface >()); } |