summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@libreoffice.org>2013-10-28 14:20:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-29 12:11:15 +0000
commit118116a67fb80863ebf3981a164d725b19c61e2e (patch)
tree56165a30e1c9861bd4f78fa03db7d666823ed09a /ucb
parent9d6bc2c63360632edf871e5cbf74e96d8d2c2d76 (diff)
UCB: RepoContent::RepoContent use OUString::startsWith instead copy.
Change-Id: Ib504585572ae9bada60076828ade8197331d5fda Reviewed-on: https://gerrit.libreoffice.org/6463 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/cmis/cmis_repo_content.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/ucb/source/ucp/cmis/cmis_repo_content.cxx b/ucb/source/ucp/cmis/cmis_repo_content.cxx
index 44ef2785c93d..c3e605950a2b 100644
--- a/ucb/source/ucp/cmis/cmis_repo_content.cxx
+++ b/ucb/source/ucp/cmis/cmis_repo_content.cxx
@@ -54,9 +54,7 @@ namespace cmis
SAL_INFO( "ucb.ucp.cmis", "RepoContent::RepoContent() " << sURL );
m_sRepositoryId = m_aURL.getObjectPath( );
- if ( m_sRepositoryId[0] == '/' )
- m_sRepositoryId = m_sRepositoryId.copy( 1 );
-
+ m_sRepositoryId.startsWith("/", &m_sRepositoryId);
}
RepoContent::~RepoContent()