diff options
author | Cyrille Moureaux <cyrillem@openoffice.org> | 2002-08-01 06:54:42 +0000 |
---|---|---|
committer | Cyrille Moureaux <cyrillem@openoffice.org> | 2002-08-01 06:54:42 +0000 |
commit | f94dc29566fa18aacc67bceb1a679f29a3e9842e (patch) | |
tree | c375e4e1aa4ec494a738470a6dc2f1a23b92367d /configmgr | |
parent | e25b65071a739e2b51594a5bb06cbc34e5070b02 (diff) |
#98489# Workaround compiler bug
Diffstat (limited to 'configmgr')
-rw-r--r-- | configmgr/source/registry/cfgregistrykey.cxx | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/configmgr/source/registry/cfgregistrykey.cxx b/configmgr/source/registry/cfgregistrykey.cxx index 2a1404aa2189..93ff435e951b 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(); |