[Libreoffice-commits] core.git: ucb/source

Arnaud Versini arnaud.versini at libreoffice.org
Tue Oct 29 13:11:35 CET 2013


 ucb/source/ucp/cmis/cmis_repo_content.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 118116a67fb80863ebf3981a164d725b19c61e2e
Author: Arnaud Versini <arnaud.versini at libreoffice.org>
Date:   Mon Oct 28 14:20:55 2013 +0100

    UCB: RepoContent::RepoContent use OUString::startsWith instead copy.
    
    Change-Id: Ib504585572ae9bada60076828ade8197331d5fda
    Reviewed-on: https://gerrit.libreoffice.org/6463
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/ucb/source/ucp/cmis/cmis_repo_content.cxx b/ucb/source/ucp/cmis/cmis_repo_content.cxx
index 44ef278..c3e6059 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()


More information about the Libreoffice-commits mailing list