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
6bbe55c4
Kaydet (Commit)
6bbe55c4
authored
Ock 14, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Simplify code
Change-Id: Ib35cba4544726c1653d36072f3499dffec3cced3
üst
0dd3b8b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
29 deletions
+12
-29
locale.cxx
sal/rtl/source/locale.cxx
+12
-29
No files found.
sal/rtl/source/locale.cxx
Dosyayı görüntüle @
6bbe55c4
...
...
@@ -121,37 +121,20 @@ extern "C" rtl_Locale* rtl_hashtable_add(RTL_HASHTABLE** table, rtl_Locale* valu
key
=
rtl_hashfunc
(
*
table
,
value
->
HashCode
);
if
(
!
(
*
table
)
->
Table
[
key
])
RTL_HASHENTRY
**
pEntry
=
&
(
*
table
)
->
Table
[
key
];
while
(
*
pEntry
)
{
RTL_HASHENTRY
*
newEntry
=
(
RTL_HASHENTRY
*
)
rtl_allocateMemory
(
sizeof
(
RTL_HASHENTRY
)
);
newEntry
->
Entry
=
value
;
newEntry
->
Next
=
NULL
;
(
*
table
)
->
Table
[
key
]
=
newEntry
;
(
*
table
)
->
Elements
++
;
return
NULL
;
}
else
{
RTL_HASHENTRY
*
pEntry
=
(
*
table
)
->
Table
[
key
];
RTL_HASHENTRY
*
newEntry
=
NULL
;
while
(
pEntry
)
{
if
(
value
->
HashCode
==
pEntry
->
Entry
->
HashCode
)
return
pEntry
->
Entry
;
if
(
!
pEntry
->
Next
)
break
;
pEntry
=
pEntry
->
Next
;
}
newEntry
=
(
RTL_HASHENTRY
*
)
rtl_allocateMemory
(
sizeof
(
RTL_HASHENTRY
)
);
newEntry
->
Entry
=
value
;
newEntry
->
Next
=
NULL
;
pEntry
->
Next
=
newEntry
;
(
*
table
)
->
Elements
++
;
return
NULL
;
if
(
value
->
HashCode
==
(
*
pEntry
)
->
Entry
->
HashCode
)
return
(
*
pEntry
)
->
Entry
;
pEntry
=
&
(
*
pEntry
)
->
Next
;
}
RTL_HASHENTRY
*
newEntry
=
(
RTL_HASHENTRY
*
)
rtl_allocateMemory
(
sizeof
(
RTL_HASHENTRY
)
);
newEntry
->
Entry
=
value
;
newEntry
->
Next
=
NULL
;
*
pEntry
=
newEntry
;
(
*
table
)
->
Elements
++
;
return
NULL
;
}
sal_Bool
rtl_hashtable_grow
(
RTL_HASHTABLE
**
table
)
...
...
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