summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/ext/ucpext_datasupplier.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/ucp/ext/ucpext_datasupplier.cxx')
-rw-r--r--ucb/source/ucp/ext/ucpext_datasupplier.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/ucb/source/ucp/ext/ucpext_datasupplier.cxx b/ucb/source/ucp/ext/ucpext_datasupplier.cxx
index 20a73c80ae47..57704ff666b7 100644
--- a/ucb/source/ucp/ext/ucpext_datasupplier.cxx
+++ b/ucb/source/ucp/ext/ucpext_datasupplier.cxx
@@ -113,8 +113,8 @@ namespace ucb { namespace ucp { namespace ext
ENSURE_OR_RETURN( !i_rBaseURL.isEmpty(), "illegal base URL", i_rRelativeURL );
OUStringBuffer aComposer( i_rBaseURL );
- if ( i_rBaseURL.getStr()[ i_rBaseURL.getLength() - 1 ] != '/' )
- aComposer.append( sal_Unicode( '/' ) );
+ if ( !i_rBaseURL.endsWith("/") )
+ aComposer.append( '/' );
aComposer.append( i_rRelativeURL );
return aComposer.makeStringAndClear();
}