Kaydet (Commit) 20acbcb7 authored tarafından Rüdiger Timm's avatar Rüdiger Timm

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.
üst 178128fc
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: oemwiz.cxx,v $ * $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 * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -71,9 +71,6 @@ ...@@ -71,9 +71,6 @@
#ifndef _SFXDOCFILE_HXX #ifndef _SFXDOCFILE_HXX
#include <sfx2/docfile.hxx> #include <sfx2/docfile.hxx>
#endif #endif
#ifndef SVTOOLS_URIHELPER_HXX
#include <svtools/urihelper.hxx>
#endif
#ifndef _SFXITEMSET_HXX #ifndef _SFXITEMSET_HXX
#include <svtools/itemset.hxx> #include <svtools/itemset.hxx>
#endif #endif
...@@ -98,6 +95,8 @@ ...@@ -98,6 +95,8 @@
#ifndef _XTEXTEDT_HXX #ifndef _XTEXTEDT_HXX
#include <svtools/xtextedt.hxx> #include <svtools/xtextedt.hxx>
#endif #endif
#include "osl/diagnose.h"
#include "tools/urlobj.hxx"
#include <sfx2/sfxdlg.hxx> #include <sfx2/sfxdlg.hxx>
#include <sfx2/tabdlg.hxx> #include <sfx2/tabdlg.hxx>
...@@ -254,8 +253,8 @@ namespace preload ...@@ -254,8 +253,8 @@ namespace preload
{ {
SvtPathOptions aPathOpt; SvtPathOptions aPathOpt;
String sFileName = aPathOpt.GetUserConfigPath();//GetModulePath(); String sFileName = aPathOpt.GetUserConfigPath();//GetModulePath();
sFileName = URIHelper::SmartRelToAbs(sFileName);
INetURLObject aURLObject(sFileName); INetURLObject aURLObject(sFileName);
OSL_ASSERT(aURLObject.getSegmentCount() >= 2);
aURLObject.removeSegment(); //remove '/config' aURLObject.removeSegment(); //remove '/config'
aURLObject.removeSegment(); //remove '/user' aURLObject.removeSegment(); //remove '/user'
sFileName = aURLObject.GetMainURL(INetURLObject::DECODE_TO_IURI); sFileName = aURLObject.GetMainURL(INetURLObject::DECODE_TO_IURI);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment