diff options
author | Kai Sommerfeld <kso@openoffice.org> | 2001-06-25 08:11:47 +0000 |
---|---|---|
committer | Kai Sommerfeld <kso@openoffice.org> | 2001-06-25 08:11:47 +0000 |
commit | 57bc1a3cd13c51ebc9506ef2a807d8b045febb1b (patch) | |
tree | 6567ff745755a30e04478b04fa6df1ee40b14c73 /ucb/source/ucp/package/pkguri.hxx | |
parent | 035b897dc91198ed256de2de40733df526346da6 (diff) |
#87186# - New error handling.
Diffstat (limited to 'ucb/source/ucp/package/pkguri.hxx')
-rw-r--r-- | ucb/source/ucp/package/pkguri.hxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/ucb/source/ucp/package/pkguri.hxx b/ucb/source/ucp/package/pkguri.hxx index 7aa2737791a0..b9a7802ec748 100644 --- a/ucb/source/ucp/package/pkguri.hxx +++ b/ucb/source/ucp/package/pkguri.hxx @@ -2,9 +2,9 @@ * * $RCSfile: pkguri.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: kso $ $Date: 2000-11-27 13:05:27 $ + * last change: $Author: kso $ $Date: 2001-06-25 09:11:47 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -109,8 +109,17 @@ public: const ::rtl::OUString & getName() const { init(); return m_aName; } + + inline sal_Bool isRootFolder() const; }; +inline sal_Bool PackageUri::isRootFolder() const +{ + init(); + return ( ( m_aPath.getLength() == 1 ) && + ( m_aPath.getStr()[ 0 ] == sal_Unicode( '/' ) ) ); +} + } #endif |