summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/cmis/cmis_content.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/ucp/cmis/cmis_content.cxx')
-rw-r--r--ucb/source/ucp/cmis/cmis_content.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx
index 81590189371f..d7987c6f487f 100644
--- a/ucb/source/ucp/cmis/cmis_content.cxx
+++ b/ucb/source/ucp/cmis/cmis_content.cxx
@@ -569,7 +569,7 @@ namespace cmis
OUString sPath = m_sObjectPath;
// Get rid of the trailing slash problem
- if ( sPath[ sPath.getLength( ) - 1 ] == '/' )
+ if ( sPath.endsWith("/") )
sPath = sPath.copy( 0, sPath.getLength() - 1 );
// Get the last segment
@@ -1862,7 +1862,7 @@ namespace cmis
URL aUrl( m_sURL );
OUString sPath( m_sObjectPath );
- if ( sPath[sPath.getLength( ) - 1] != '/' )
+ if ( !sPath.endsWith("/") )
sPath += "/";
sPath += STD_TO_OUSTR( ( *it )->getName( ) );
OUString sId = STD_TO_OUSTR( ( *it )->getId( ) );