From 118116a67fb80863ebf3981a164d725b19c61e2e Mon Sep 17 00:00:00 2001 From: Arnaud Versini Date: Mon, 28 Oct 2013 14:20:55 +0100 Subject: UCB: RepoContent::RepoContent use OUString::startsWith instead copy. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ib504585572ae9bada60076828ade8197331d5fda Reviewed-on: https://gerrit.libreoffice.org/6463 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- ucb/source/ucp/cmis/cmis_repo_content.cxx | 4 +--- 1 file changed, 1 insertion(+), 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() -- cgit