summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/expand/ucpexpand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/ucp/expand/ucpexpand.cxx')
-rw-r--r--ucb/source/ucp/expand/ucpexpand.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/ucb/source/ucp/expand/ucpexpand.cxx b/ucb/source/ucp/expand/ucpexpand.cxx
index 9dd95fa5d7fd..b823a2d91470 100644
--- a/ucb/source/ucp/expand/ucpexpand.cxx
+++ b/ucb/source/ucp/expand/ucpexpand.cxx
@@ -177,8 +177,7 @@ OUString ExpandContentProviderImpl::expandUri(
uno::Reference< ucb::XContentIdentifier > const & xIdentifier ) const
{
OUString uri( xIdentifier->getContentIdentifier() );
- if (uri.compareToAscii(
- RTL_CONSTASCII_STRINGPARAM(EXPAND_PROTOCOL ":") ) != 0)
+ if (!uri.startsWith(EXPAND_PROTOCOL ":"))
{
throw ucb::IllegalIdentifierException(
"expected protocol " EXPAND_PROTOCOL "!",