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
0efcfcdf
Kaydet (Commit)
0efcfcdf
authored
Ara 11, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cppcheck: size() == 0 -> empty()
Change-Id: I23b6b8fdbb9c4f367a590a21e40e7bbaa76f7fce
üst
621b0f29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
svxacorr.cxx
editeng/source/misc/svxacorr.cxx
+3
-3
No files found.
editeng/source/misc/svxacorr.cxx
Dosyayı görüntüle @
0efcfcdf
...
...
@@ -2669,7 +2669,7 @@ void SvxAutocorrWordList::DeleteAndDestroyAll()
// returns true if inserted
bool
SvxAutocorrWordList
::
Insert
(
SvxAutocorrWord
*
pWord
)
{
if
(
maSet
.
size
()
==
0
)
// use the hash
if
(
maSet
.
empty
()
)
// use the hash
{
rtl
::
OUString
aShort
(
pWord
->
GetShort
()
);
bool
bThere
=
maHash
.
find
(
aShort
)
!=
maHash
.
end
();
...
...
@@ -2697,7 +2697,7 @@ SvxAutocorrWord *SvxAutocorrWordList::FindAndRemove(SvxAutocorrWord *pWord)
{
SvxAutocorrWord
*
pMatch
=
NULL
;
if
(
maSet
.
size
()
==
0
)
// use the hash
if
(
maSet
.
empty
()
)
// use the hash
{
SvxAutocorrWordList_Hash
::
iterator
it
=
maHash
.
find
(
pWord
->
GetShort
()
);
if
(
it
!=
maHash
.
end
()
)
...
...
@@ -2724,7 +2724,7 @@ SvxAutocorrWordList::Content SvxAutocorrWordList::getSortedContent() const
Content
aContent
;
// convert from hash to set permanantly
if
(
maSet
.
size
()
==
0
)
if
(
maSet
.
empty
()
)
{
// This beasty has some O(N log(N)) in a terribly slow ICU collate fn.
for
(
SvxAutocorrWordList_Hash
::
const_iterator
it
=
maHash
.
begin
();
it
!=
maHash
.
end
();
++
it
)
...
...
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