diff options
Diffstat (limited to 'ucb/source/ucp/tdoc/tdoc_uri.hxx')
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_uri.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ucb/source/ucp/tdoc/tdoc_uri.hxx b/ucb/source/ucp/tdoc/tdoc_uri.hxx index 4da9166e17dc..a137b6881ec9 100644 --- a/ucb/source/ucp/tdoc/tdoc_uri.hxx +++ b/ucb/source/ucp/tdoc/tdoc_uri.hxx @@ -115,7 +115,7 @@ inline sal_Bool Uri::isDocument() const inline sal_Bool Uri::isFolder() const { init(); - return ( m_aPath.lastIndexOf( '/' ) == m_aPath.getLength() - 1 ); + return m_aPath.isEmpty() || m_aPath.endsWith( "/" ); } } // namespace tdoc_ucp |