summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/package/pkgcontent.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/ucp/package/pkgcontent.cxx')
-rw-r--r--ucb/source/ucp/package/pkgcontent.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/ucb/source/ucp/package/pkgcontent.cxx b/ucb/source/ucp/package/pkgcontent.cxx
index 2b85a29025ec..288525bdefd5 100644
--- a/ucb/source/ucp/package/pkgcontent.cxx
+++ b/ucb/source/ucp/package/pkgcontent.cxx
@@ -1839,8 +1839,7 @@ void Content::transfer(
if ( rInfo.SourceURL.getLength() <= aId.getLength() )
{
- if ( aId.compareTo(
- rInfo.SourceURL, rInfo.SourceURL.getLength() ) == 0 )
+ if ( aId.startsWith( rInfo.SourceURL ) )
{
uno::Any aProps
= uno::makeAny(beans::PropertyValue(
@@ -2193,7 +2192,7 @@ void Content::queryChildren( ContentRefList& rChildren )
// Is aURL a prefix of aChildURL?
if ( ( aChildURL.getLength() > nLen ) &&
- ( aChildURL.compareTo( aURL, nLen ) == 0 ) )
+ ( aChildURL.startsWith( aURL ) ) )
{
if ( aChildURL.indexOf( '/', nLen ) == -1 )
{