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
22547d05
Kaydet (Commit)
22547d05
authored
Eyl 13, 2015
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid getTokenCount in CustomAnimationPreset::getProperties/hasProperty
Change-Id: Ic5b9c152ef2faf8333ad797232e26b817668e965
üst
77ca5fec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
CustomAnimationPreset.cxx
sd/source/core/CustomAnimationPreset.cxx
+16
-14
No files found.
sd/source/core/CustomAnimationPreset.cxx
Dosyayı görüntüle @
22547d05
...
...
@@ -32,7 +32,6 @@
#include <comphelper/getexpandeduri.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/random.hxx>
#include <comphelper/string.hxx>
#include <unotools/pathoptions.hxx>
#include <tools/stream.hxx>
...
...
@@ -199,28 +198,31 @@ Reference< XAnimationNode > CustomAnimationPreset::create( const OUString& rstrS
UStringList
CustomAnimationPreset
::
getProperties
()
const
{
OUString
aProperties
(
maProperty
);
sal_uInt16
nTokens
=
comphelper
::
string
::
getTokenCount
(
aProperties
,
';'
);
sal_uInt16
nToken
;
UStringList
aPropertyList
;
for
(
nToken
=
0
;
nToken
<
nTokens
;
nToken
++
)
aPropertyList
.
push_back
(
aProperties
.
getToken
(
nToken
,
';'
)
);
if
(
!
maProperty
.
isEmpty
())
{
sal_Int32
nPos
=
0
;
do
{
aPropertyList
.
push_back
(
maProperty
.
getToken
(
0
,
';'
,
nPos
));
}
while
(
nPos
>=
0
);
}
return
aPropertyList
;
}
bool
CustomAnimationPreset
::
hasProperty
(
const
OUString
&
rProperty
)
const
{
OUString
aProperties
(
maProperty
);
OUString
aProperty
(
rProperty
)
;
sal_uInt16
nTokens
=
comphelper
::
string
::
getTokenCount
(
aProperties
,
';'
);
sal_
uInt16
nToken
;
for
(
nToken
=
0
;
nToken
<
nTokens
;
nToken
++
)
if
(
maProperty
.
isEmpty
())
return
false
;
sal_
Int32
nPos
=
0
;
do
{
if
(
aProperties
.
getToken
(
nToken
,
';'
)
==
aProperty
)
if
(
maProperty
.
getToken
(
0
,
';'
,
nPos
)
==
rProperty
)
return
true
;
}
while
(
nPos
>=
0
);
return
false
;
}
...
...
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