summaryrefslogtreecommitdiff
path: root/cppuhelper/source/unourl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-04-26 15:25:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-04-27 15:11:25 +0200
commit60728712f0f8bf72662da0b0e446ab416e9bf347 (patch)
treee950a7cb099f51bd048e7e2e2f65607282ff5052 /cppuhelper/source/unourl.cxx
parent87e0feafd3690a9b58890cc28f8ba0c521bfb557 (diff)
loplugin:ostr in cppu,cppuhelper
Change-Id: I15c00d7a87396d07be2d10a0311f308a93e8eec3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166751 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'cppuhelper/source/unourl.cxx')
-rw-r--r--cppuhelper/source/unourl.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/cppuhelper/source/unourl.cxx b/cppuhelper/source/unourl.cxx
index 9656dd078ba1..be01adb460de 100644
--- a/cppuhelper/source/unourl.cxx
+++ b/cppuhelper/source/unourl.cxx
@@ -68,7 +68,7 @@ inline UnoUrlDescriptor::Impl::Impl(OUString const & rDescriptor)
case STATE_NAME0:
if (bEnd || !rtl::isAsciiAlphanumeric(c))
throw rtl::MalformedUriException(
- "UNO URL contains bad descriptor name");
+ u"UNO URL contains bad descriptor name"_ustr);
nStart = i;
eState = STATE_NAME;
break;
@@ -82,13 +82,13 @@ inline UnoUrlDescriptor::Impl::Impl(OUString const & rDescriptor)
}
else if (!rtl::isAsciiAlphanumeric(c))
throw rtl::MalformedUriException(
- "UNO URL contains bad descriptor name");
+ u"UNO URL contains bad descriptor name"_ustr);
break;
case STATE_KEY0:
if (bEnd || !rtl::isAsciiAlphanumeric(c))
throw rtl::MalformedUriException(
- "UNO URL contains bad parameter key");
+ u"UNO URL contains bad parameter key"_ustr);
nStart = i;
eState = STATE_KEY;
break;
@@ -102,7 +102,7 @@ inline UnoUrlDescriptor::Impl::Impl(OUString const & rDescriptor)
}
else if (bEnd || !rtl::isAsciiAlphanumeric(c))
throw rtl::MalformedUriException(
- "UNO URL contains bad parameter key");
+ u"UNO URL contains bad parameter key"_ustr);
break;
case STATE_VALUE:
@@ -115,7 +115,7 @@ inline UnoUrlDescriptor::Impl::Impl(OUString const & rDescriptor)
rtl_UriDecodeWithCharset,
RTL_TEXTENCODING_UTF8)).second)
throw rtl::MalformedUriException(
- "UNO URL contains duplicated parameter");
+ u"UNO URL contains duplicated parameter"_ustr);
eState = STATE_KEY0;
}
break;
@@ -198,20 +198,20 @@ private:
inline UnoUrl::Impl * UnoUrl::Impl::create(OUString const & rUrl)
{
if (!rUrl.startsWithIgnoreAsciiCase("uno:"))
- throw rtl::MalformedUriException("UNO URL does not start with \"uno:\"");
+ throw rtl::MalformedUriException(u"UNO URL does not start with \"uno:\""_ustr);
sal_Int32 i = RTL_CONSTASCII_LENGTH("uno:");
sal_Int32 j = rUrl.indexOf(';', i);
if (j < 0)
- throw rtl::MalformedUriException("UNO URL has too few semicolons");
+ throw rtl::MalformedUriException(u"UNO URL has too few semicolons"_ustr);
OUString aConnection(rUrl.copy(i, j - i));
i = j + 1;
j = rUrl.indexOf(0x3B, i); // ';'
if (j < 0)
- throw rtl::MalformedUriException("UNO URL has too few semicolons");
+ throw rtl::MalformedUriException(u"UNO URL has too few semicolons"_ustr);
OUString aProtocol(rUrl.copy(i, j - i));
i = j + 1;
if (i == rUrl.getLength())
- throw rtl::MalformedUriException("UNO URL contains empty ObjectName");
+ throw rtl::MalformedUriException(u"UNO URL contains empty ObjectName"_ustr);
for (j = i; j < rUrl.getLength(); ++j)
{
sal_Unicode c = rUrl[j];
@@ -222,7 +222,7 @@ inline UnoUrl::Impl * UnoUrl::Impl::create(OUString const & rUrl)
&& c != 0x2F && c != 0x3A && c != 0x3D // '/', ':', '='
&& c != 0x3F && c != 0x40 && c != 0x5F // '?', '@', '_'
&& c != 0x7E) // '~'
- throw rtl::MalformedUriException("UNO URL contains invalid ObjectName");
+ throw rtl::MalformedUriException(u"UNO URL contains invalid ObjectName"_ustr);
}
return new Impl(aConnection, aProtocol, rUrl.copy(i));
}