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
10d14a94
Kaydet (Commit)
10d14a94
authored
Agu 24, 2014
tarafından
Chris Sherlock
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tools: make some variable names more clear
Change-Id: I5eb2428f4c71e5aa9bfc0bf71c06d87be039ad3b
üst
d6bf76aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
extendapplicationenvironment.cxx
tools/source/misc/extendapplicationenvironment.cxx
+7
-7
No files found.
tools/source/misc/extendapplicationenvironment.cxx
Dosyayı görüntüle @
10d14a94
...
...
@@ -46,10 +46,10 @@ namespace tools {
void
extendApplicationEnvironment
()
{
#if defined UNX
// Try to set RLIMIT_NOFILE as large as possible (failure is harmless):
rlimit
l
;
if
(
getrlimit
(
RLIMIT_NOFILE
,
&
l
)
==
0
)
{
l
.
rlim_cur
=
l
.
rlim_max
;
setrlimit
(
RLIMIT_NOFILE
,
&
l
);
rlimit
l
im
;
if
(
getrlimit
(
RLIMIT_NOFILE
,
&
l
im
)
==
0
)
{
l
im
.
rlim_cur
=
lim
.
rlim_max
;
setrlimit
(
RLIMIT_NOFILE
,
&
l
im
);
}
#endif
...
...
@@ -68,9 +68,9 @@ void extendApplicationEnvironment() {
if
(
osl_getExecutableFile
(
&
uri
.
pData
)
!=
osl_Process_E_None
)
{
abort
();
}
sal_Int32
i
=
uri
.
lastIndexOf
(
'/'
);
if
(
i
>=
0
)
{
uri
=
uri
.
copy
(
0
,
i
+
1
);
sal_Int32
lastDirSeperatorPos
=
uri
.
lastIndexOf
(
'/'
);
if
(
lastDirSeperatorPos
>=
0
)
{
uri
=
uri
.
copy
(
0
,
lastDirSeperatorPos
+
1
);
}
env
.
append
(
rtl
::
Bootstrap
::
encode
(
uri
));
#if HAVE_FEATURE_MACOSX_MACLIKE_APP_STRUCTURE
...
...
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