summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-11 16:05:35 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-11 17:33:49 +0100
commit7e3a84d1709a853e14a79398b4a17e3c09e43aa9 (patch)
tree70168c3ad33ad4bfb1d941b8f9f97db6b75ed00c /ucb
parent279e9914a92fe5751cc3c0f466dc3198bc44c60b (diff)
coverity#1130163 Unchecked return value
Change-Id: Iffc4ba146ac8f851239e93a1ace53c6b34234824
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/cmis/cmis_repo_content.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/ucb/source/ucp/cmis/cmis_repo_content.cxx b/ucb/source/ucp/cmis/cmis_repo_content.cxx
index ea99c3509063..5dc1ae1ceda5 100644
--- a/ucb/source/ucp/cmis/cmis_repo_content.cxx
+++ b/ucb/source/ucp/cmis/cmis_repo_content.cxx
@@ -61,8 +61,9 @@ namespace cmis
OUString sURL = m_xIdentifier->getContentIdentifier( );
SAL_INFO( "ucb.ucp.cmis", "RepoContent::RepoContent() " << sURL );
- m_sRepositoryId = m_aURL.getObjectPath( );
- m_sRepositoryId.startsWith("/", &m_sRepositoryId);
+ m_sRepositoryId = m_aURL.getObjectPath();
+ if (!m_sRepositoryId.isEmpty() && m_sRepositoryId[0] == '/')
+ m_sRepositoryId = m_sRepositoryId.copy(1);
}
RepoContent::~RepoContent()