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
4845155e
Kaydet (Commit)
4845155e
authored
Şub 01, 2016
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
UniqueIndexImpl::size() is unneeded
Change-Id: I36c4d80ecf3ba3c88c98f5ad0a3fc1728332b25b
üst
02caf16f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
unqidx.hxx
include/tools/unqidx.hxx
+0
-2
unqidx.cxx
tools/source/memtools/unqidx.cxx
+2
-2
No files found.
include/tools/unqidx.hxx
Dosyayı görüntüle @
4845155e
...
...
@@ -38,8 +38,6 @@ public:
:
maMap
(),
nStartIndex
(
_nStartIndex
),
nUniqIndex
(
_nStartIndex
),
nCount
(
0
)
{}
size_t
size
()
const
{
return
maMap
.
size
();
}
sal_uIntPtr
Insert
(
void
*
p
);
// insert value with key, replacing existing entry if necessary
void
*
Remove
(
sal_uIntPtr
aIndex
);
...
...
tools/source/memtools/unqidx.cxx
Dosyayı görüntüle @
4845155e
...
...
@@ -49,7 +49,7 @@ void* UniqueIndexImpl::Remove( sal_uIntPtr nIndex )
{
// Check for valid index
if
(
(
nIndex
>=
nStartIndex
)
&&
(
nIndex
<
(
size
()
+
nStartIndex
))
)
(
nIndex
<
(
maMap
.
size
()
+
nStartIndex
))
)
{
// insert index as empty entry, and reduce indexcount,
// if this entry was used
...
...
@@ -69,7 +69,7 @@ void* UniqueIndexImpl::Get( sal_uIntPtr nIndex ) const
{
// check for valid index
if
(
(
nIndex
>=
nStartIndex
)
&&
(
nIndex
<
(
size
()
+
nStartIndex
))
)
(
nIndex
<
(
maMap
.
size
()
+
nStartIndex
))
)
{
std
::
map
<
sal_uInt32
,
void
*>::
const_iterator
it
=
maMap
.
find
(
nIndex
-
nStartIndex
);
if
(
it
!=
maMap
.
end
()
)
...
...
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