diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-02-05 13:19:24 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-02-05 14:40:58 -0500 |
commit | a0dd5a8d6a9213ad40d738f8639e1500a1b59caa (patch) | |
tree | c2c35888a6c277e4bd0d4ab7a2480262d75ddb6e /framework | |
parent | ea47c4cdcb524fe6571b6a093fd1b3fc2e029d16 (diff) |
String cleanup.
Change-Id: Ifdc1716ed033f01bc298243c1e2dafd5736fac68
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/loadenv/loadenv.cxx | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/framework/source/loadenv/loadenv.cxx b/framework/source/loadenv/loadenv.cxx index 0b5f95db11a1..1784199e0bd9 100644 --- a/framework/source/loadenv/loadenv.cxx +++ b/framework/source/loadenv/loadenv.cxx @@ -175,22 +175,19 @@ css::uno::Reference< css::lang::XComponent > LoadEnv::loadComponentFromURL(const { case LoadEnvException::ID_INVALID_MEDIADESCRIPTOR: throw css::lang::IllegalArgumentException( - ::rtl::OUString("Optional list of arguments seem to be corrupted."), - xLoader, - 4); + "Optional list of arguments seem to be corrupted.", xLoader, 4); case LoadEnvException::ID_UNSUPPORTED_CONTENT: { - rtl::OUStringBuffer aMsg; - aMsg.appendAscii(RTL_CONSTASCII_STRINGPARAM("Unsupported URL <")). - append(sURL).append('>'); + OUStringBuffer aMsg; + aMsg.appendAscii("Unsupported URL <").append(sURL).append('>'); if (!ex.m_sMessage.isEmpty()) { - aMsg.appendAscii(RTL_CONSTASCII_STRINGPARAM(": \"")). - append(rtl::OStringToOUString( + aMsg.appendAscii(": \""). + append(OStringToOUString( ex.m_sMessage, RTL_TEXTENCODING_UTF8)). - appendAscii(RTL_CONSTASCII_STRINGPARAM("\"")); + appendAscii("\""); } throw css::lang::IllegalArgumentException(aMsg.makeStringAndClear(), |