From a0dd5a8d6a9213ad40d738f8639e1500a1b59caa Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Tue, 5 Feb 2013 13:19:24 -0500 Subject: String cleanup. Change-Id: Ifdc1716ed033f01bc298243c1e2dafd5736fac68 --- framework/source/loadenv/loadenv.cxx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'framework') 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(), -- cgit