diff options
author | Rüdiger Timm <rt@openoffice.org> | 2005-01-11 12:06:50 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2005-01-11 12:06:50 +0000 |
commit | 20acbcb735407f49280c0e7befe324a5474a4e0a (patch) | |
tree | 8ffaedec6aaedd9216a0d004ab0d8d5f106ea7e2 /extensions | |
parent | 178128fc8e52b840d39e9c5f4d6d4dac598e7de4 (diff) |
INTEGRATION: CWS sb19 (1.11.76); FILE MERGED
2004/08/16 10:17:44 sb 1.11.76.1: #108948# Removed use of URIHelper::SmartRelToAbs, which was unnecessary anyway, as the result of SvtPathOptions::GetUserConfigPath already is an absolute URL.
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/preload/oemwiz.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/extensions/source/preload/oemwiz.cxx b/extensions/source/preload/oemwiz.cxx index 4804f98ca600..3743042ff1bc 100644 --- a/extensions/source/preload/oemwiz.cxx +++ b/extensions/source/preload/oemwiz.cxx @@ -2,9 +2,9 @@ * * $RCSfile: oemwiz.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: obo $ $Date: 2004-04-29 16:30:59 $ + * last change: $Author: rt $ $Date: 2005-01-11 13:06:50 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -71,9 +71,6 @@ #ifndef _SFXDOCFILE_HXX #include <sfx2/docfile.hxx> #endif -#ifndef SVTOOLS_URIHELPER_HXX -#include <svtools/urihelper.hxx> -#endif #ifndef _SFXITEMSET_HXX #include <svtools/itemset.hxx> #endif @@ -98,6 +95,8 @@ #ifndef _XTEXTEDT_HXX #include <svtools/xtextedt.hxx> #endif +#include "osl/diagnose.h" +#include "tools/urlobj.hxx" #include <sfx2/sfxdlg.hxx> #include <sfx2/tabdlg.hxx> @@ -254,8 +253,8 @@ namespace preload { SvtPathOptions aPathOpt; String sFileName = aPathOpt.GetUserConfigPath();//GetModulePath(); - sFileName = URIHelper::SmartRelToAbs(sFileName); INetURLObject aURLObject(sFileName); + OSL_ASSERT(aURLObject.getSegmentCount() >= 2); aURLObject.removeSegment(); //remove '/config' aURLObject.removeSegment(); //remove '/user' sFileName = aURLObject.GetMainURL(INetURLObject::DECODE_TO_IURI); |