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
ff7d968b
Kaydet (Commit)
ff7d968b
authored
Kas 07, 2018
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid getTokenCount()
Change-Id: I769660ab1832e76ed7ac272d0d2c973d14171c06
üst
be6e05e8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
glossary.cxx
sw/source/ui/misc/glossary.cxx
+3
-4
No files found.
sw/source/ui/misc/glossary.cxx
Dosyayı görüntüle @
ff7d968b
...
@@ -37,7 +37,6 @@
...
@@ -37,7 +37,6 @@
#include <unocrsr.hxx>
#include <unocrsr.hxx>
#include <unotools.hxx>
#include <unotools.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/string.hxx>
#include <ucbhelper/content.hxx>
#include <ucbhelper/content.hxx>
#include <com/sun/star/text/AutoTextContainer.hpp>
#include <com/sun/star/text/AutoTextContainer.hpp>
#include <com/sun/star/ui/dialogs/XFilePicker3.hpp>
#include <com/sun/star/ui/dialogs/XFilePicker3.hpp>
...
@@ -606,12 +605,12 @@ IMPL_LINK_NOARG(SwGlossaryDlg, BibHdl, Button*, void)
...
@@ -606,12 +605,12 @@ IMPL_LINK_NOARG(SwGlossaryDlg, BibHdl, Button*, void)
//check if at least one glossary path is write enabled
//check if at least one glossary path is write enabled
SvtPathOptions
aPathOpt
;
SvtPathOptions
aPathOpt
;
const
OUString
&
sGlosPath
(
aPathOpt
.
GetAutoTextPath
()
);
const
OUString
&
sGlosPath
(
aPathOpt
.
GetAutoTextPath
()
);
const
sal_Int32
nPaths
=
comphelper
::
string
::
getTokenCount
(
sGlosPath
,
';'
);
bool
bIsWritable
=
false
;
bool
bIsWritable
=
false
;
for
(
sal_Int32
nPath
=
0
;
nPath
<
nPaths
;
nPath
++
)
sal_Int32
nIdx
{
sGlosPath
.
isEmpty
()
?
-
1
:
0
};
while
(
nIdx
>=
0
)
{
{
const
OUString
sPath
=
URIHelper
::
SmartRel2Abs
(
const
OUString
sPath
=
URIHelper
::
SmartRel2Abs
(
INetURLObject
(),
sGlosPath
.
getToken
(
nPath
,
';'
),
INetURLObject
(),
sGlosPath
.
getToken
(
0
,
';'
,
nIdx
),
URIHelper
::
GetMaybeFileHdl
());
URIHelper
::
GetMaybeFileHdl
());
try
try
{
{
...
...
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