Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
a051ec67
Kaydet (Commit)
a051ec67
authored
Ock 20, 2003
tarafından
Lars Langhans
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
better path check
üst
ea04599a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
filehelper.cxx
testshl2/source/filehelper.cxx
+20
-2
No files found.
testshl2/source/filehelper.cxx
Dosyayı görüntüle @
a051ec67
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: filehelper.cxx,v $
*
* $Revision: 1.
2
$
* $Revision: 1.
3
$
*
* last change: $Author: lla $ $Date: 2003-01-
09 11:46:11
$
* last change: $Author: lla $ $Date: 2003-01-
20 11:08:38
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -125,7 +125,25 @@ rtl::OUString convertPath( rtl::OUString const& _suSysPath )
{
// PRE: String should contain a filename, relativ or absolut
rtl
::
OUString
fURL
;
bool
bRelativ
=
false
;
#ifdef WNT
sal_Char
cFileSep
[]
=
"
\\
"
;
#endif
#ifdef UNX
sal_Char
cFileSep
[]
=
"/"
;
#endif
if
(
_suSysPath
.
indexOf
(
rtl
::
OUString
::
createFromAscii
(
".."
))
!=
-
1
)
{
bRelativ
=
true
;
}
else
if
(
_suSysPath
.
indexOf
(
rtl
::
OUString
::
createFromAscii
(
cFileSep
))
==
-
1
)
{
// no fileseparator found, must be relative
bRelativ
=
true
;
}
if
(
bRelativ
)
{
// filepath contains '..' so it's a relative path make it absolut.
rtl
::
OUString
curDirPth
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment