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
49b62e4d
Kaydet (Commit)
49b62e4d
authored
Mar 22, 2011
tarafından
Christina Rossmanith
Kaydeden (comit)
Radek Doulik
Mar 24, 2011
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed never defined _ENABLE_CUR_DIR
üst
b6f069aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
51 deletions
+2
-51
methods.cxx
basic/source/runtime/methods.cxx
+2
-51
No files found.
basic/source/runtime/methods.cxx
Dosyayı görüntüle @
49b62e4d
...
@@ -85,8 +85,6 @@ using namespace com::sun::star::script;
...
@@ -85,8 +85,6 @@ using namespace com::sun::star::script;
#endif
/* _USE_UNO */
#endif
/* _USE_UNO */
//#define _ENABLE_CUR_DIR
#include "stdobj.hxx"
#include "stdobj.hxx"
#include <basic/sbstdobj.hxx>
#include <basic/sbstdobj.hxx>
#include "rtlproto.hxx"
#include "rtlproto.hxx"
...
@@ -489,27 +487,7 @@ RTLFUNC(ChDir)
...
@@ -489,27 +487,7 @@ RTLFUNC(ChDir)
(
void
)
bWrite
;
(
void
)
bWrite
;
rPar
.
Get
(
0
)
->
PutEmpty
();
rPar
.
Get
(
0
)
->
PutEmpty
();
if
(
rPar
.
Count
()
==
2
)
if
(
rPar
.
Count
()
!=
2
)
{
#ifdef _ENABLE_CUR_DIR
String
aPath
=
rPar
.
Get
(
1
)
->
GetString
();
sal_Bool
bError
=
sal_False
;
#ifdef WNT
// #55997 Laut MI hilft es bei File-URLs einen DirEntry zwischenzuschalten
// #40996 Harmoniert bei Verwendung der WIN32-Funktion nicht mit getdir
DirEntry
aEntry
(
aPath
);
ByteString
aFullPath
(
aEntry
.
GetFull
(),
gsl_getSystemTextEncoding
()
);
if
(
chdir
(
aFullPath
.
GetBuffer
())
)
bError
=
sal_True
;
#else
if
(
!
DirEntry
(
aPath
).
SetCWD
())
bError
=
sal_True
;
#endif
if
(
bError
)
StarBASIC
::
Error
(
SbERR_PATH_NOT_FOUND
);
#endif
}
else
StarBASIC
::
Error
(
SbERR_BAD_ARGUMENT
);
StarBASIC
::
Error
(
SbERR_BAD_ARGUMENT
);
}
}
...
@@ -519,34 +497,7 @@ RTLFUNC(ChDrive)
...
@@ -519,34 +497,7 @@ RTLFUNC(ChDrive)
(
void
)
bWrite
;
(
void
)
bWrite
;
rPar
.
Get
(
0
)
->
PutEmpty
();
rPar
.
Get
(
0
)
->
PutEmpty
();
if
(
rPar
.
Count
()
==
2
)
if
(
rPar
.
Count
()
!=
2
)
{
#ifdef _ENABLE_CUR_DIR
// Keine Laufwerke in Unix
#ifndef UNX
String
aPar1
=
rPar
.
Get
(
1
)
->
GetString
();
#if defined (WNT) || defined (OS2)
if
(
aPar1
.
Len
()
>
0
)
{
int
nCurDrive
=
(
int
)
aPar1
.
GetBuffer
()[
0
];
;
if
(
!
isalpha
(
nCurDrive
)
)
{
StarBASIC
::
Error
(
SbERR_BAD_ARGUMENT
);
return
;
}
else
nCurDrive
-=
(
'A'
-
1
);
if
(
_chdrive
(
nCurDrive
))
StarBASIC
::
Error
(
SbERR_NO_DEVICE
);
}
#endif
#endif
// #ifndef UNX
#endif
}
else
StarBASIC
::
Error
(
SbERR_BAD_ARGUMENT
);
StarBASIC
::
Error
(
SbERR_BAD_ARGUMENT
);
}
}
...
...
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