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
aef2aa22
Kaydet (Commit)
aef2aa22
authored
Eyl 13, 2015
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid getTokenCount in StandardHdl_Impl link (3)
Change-Id: Ib68b48fd14cbfae234d03a2963991a1c8581423b
üst
57c0ca2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
optpath.cxx
cui/source/options/optpath.cxx
+15
-8
No files found.
cui/source/options/optpath.cxx
Dosyayı görüntüle @
aef2aa22
...
@@ -444,16 +444,23 @@ IMPL_LINK_NOARG_TYPED(SvxPathTabPage, StandardHdl_Impl, Button*, void)
...
@@ -444,16 +444,23 @@ IMPL_LINK_NOARG_TYPED(SvxPathTabPage, StandardHdl_Impl, Button*, void)
while
(
nOldPos
>=
0
);
while
(
nOldPos
>=
0
);
OUString
sUserPath
,
sWritablePath
;
OUString
sUserPath
,
sWritablePath
;
sal_uInt16
nOldCount
=
comphelper
::
string
::
getTokenCount
(
sTemp
,
MULTIPATH_DELIMITER
);
if
(
!
sTemp
.
isEmpty
()
)
sal_uInt16
i
;
for
(
i
=
0
;
nOldCount
>
0
&&
i
<
nOldCount
-
1
;
++
i
)
{
{
if
(
!
sUserPath
.
isEmpty
()
)
sal_Int32
nNextPos
=
0
;
sUserPath
+=
OUStringLiteral1
<
MULTIPATH_DELIMITER
>
();
for
(;;)
sUserPath
+=
sTemp
.
getToken
(
i
,
MULTIPATH_DELIMITER
);
{
const
OUString
sToken
=
sTemp
.
getToken
(
0
,
MULTIPATH_DELIMITER
,
nNextPos
);
if
(
nNextPos
<
0
)
{
// Last token need a different handling
sWritablePath
=
sToken
;
break
;
}
if
(
!
sUserPath
.
isEmpty
()
)
sUserPath
+=
OUStringLiteral1
<
MULTIPATH_DELIMITER
>
();
sUserPath
+=
sToken
;
}
}
}
sWritablePath
=
sTemp
.
getToken
(
nOldCount
-
1
,
MULTIPATH_DELIMITER
);
pPathBox
->
SetEntryText
(
Convert_Impl
(
sTemp
),
pEntry
,
1
);
pPathBox
->
SetEntryText
(
Convert_Impl
(
sTemp
),
pEntry
,
1
);
pPathImpl
->
eState
=
SfxItemState
::
SET
;
pPathImpl
->
eState
=
SfxItemState
::
SET
;
pPathImpl
->
sUserPath
=
sUserPath
;
pPathImpl
->
sUserPath
=
sUserPath
;
...
...
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