summaryrefslogtreecommitdiff
path: root/configmgr/source/registry
diff options
context:
space:
mode:
authorCyrille Moureaux <cyrillem@openoffice.org>2002-08-01 06:54:42 +0000
committerCyrille Moureaux <cyrillem@openoffice.org>2002-08-01 06:54:42 +0000
commit17d25c07a72fdbe2e4734ed16431c75d678b4af7 (patch)
tree586e8c1083da807b321188651e487e8d73a942be /configmgr/source/registry
parent1c8fa0e196918b5382476dc9a83ffe900c07a3ba (diff)
#98489# Workaround compiler bug
Diffstat (limited to 'configmgr/source/registry')
-rw-r--r--configmgr/source/registry/cfgregistrykey.cxx20
1 files changed, 17 insertions, 3 deletions
diff --git a/configmgr/source/registry/cfgregistrykey.cxx b/configmgr/source/registry/cfgregistrykey.cxx
index 5fa10b0bea..55c136f7af 100644
--- a/configmgr/source/registry/cfgregistrykey.cxx
+++ b/configmgr/source/registry/cfgregistrykey.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: cfgregistrykey.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: jb $ $Date: 2002-04-11 14:00:02 $
+ * last change: $Author: cyrillem $ $Date: 2002-08-01 07:54:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1574,7 +1574,21 @@ bool configmgr::splitPath(const OUString& _sPath, OUString& _rsParentPath, OUStr
try
{
bool bAbsolute = Path::isAbsolutePath(_sPath);
- Path::Rep aPath = bAbsolute ? AbsolutePath::parse(_sPath).rep() : RelativePath::parse(_sPath).rep();
+ Path::Rep aPath ;
+
+ if (bAbsolute)
+ {
+ AbsolutePath parsedPath = AbsolutePath::parse(_sPath) ;
+
+ aPath = parsedPath.rep() ;
+ }
+ else
+ {
+ RelativePath parsedPath = RelativePath::parse(_sPath) ;
+
+ aPath = parsedPath.rep() ;
+ }
+ //Path::Rep aPath = bAbsolute ? AbsolutePath::parse(_sPath).rep() : RelativePath::parse(_sPath).rep();
OSL_ENSURE(!aPath.isEmpty(), "Trying to split an empty or root path");
Path::Iterator aFirst = aPath.begin(), aLast = aPath.end();