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
7172a7e4
Kaydet (Commit)
7172a7e4
authored
Agu 15, 2017
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tdf#96099: Get rid of one more pointless typedef
Change-Id: If50b022cabb0a94297cdb13c58f80884c33892d3
üst
b051f4ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
lookupcache.hxx
sc/inc/lookupcache.hxx
+0
-2
documen2.cxx
sc/source/core/data/documen2.cxx
+5
-5
No files found.
sc/inc/lookupcache.hxx
Dosyayı görüntüle @
7172a7e4
...
...
@@ -191,8 +191,6 @@ private:
};
typedef
std
::
unordered_map
<
ScRange
,
ScLookupCache
*
,
ScLookupCache
::
Hash
>
ScLookupCacheMap
;
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sc/source/core/data/documen2.cxx
Dosyayı görüntüle @
7172a7e4
...
...
@@ -111,7 +111,7 @@ using namespace com::sun::star;
// dtor plus helpers are convenient.
struct
ScLookupCacheMapImpl
{
ScLookupCacheMap
aCacheMap
;
std
::
unordered_map
<
ScRange
,
ScLookupCache
*
,
ScLookupCache
::
Hash
>
aCacheMap
;
~
ScLookupCacheMapImpl
()
{
freeCaches
();
...
...
@@ -120,13 +120,13 @@ struct ScLookupCacheMapImpl
{
freeCaches
();
// free mapping
ScLookupCacheMap
aTmp
;
std
::
unordered_map
<
ScRange
,
ScLookupCache
*
,
ScLookupCache
::
Hash
>
aTmp
;
aCacheMap
.
swap
(
aTmp
);
}
private
:
void
freeCaches
()
{
for
(
ScLookupCacheMap
::
iterator
it
(
aCacheMap
.
begin
());
it
!=
aCacheMap
.
end
();
++
it
)
for
(
auto
it
(
aCacheMap
.
begin
());
it
!=
aCacheMap
.
end
();
++
it
)
delete
(
*
it
).
second
;
}
};
...
...
@@ -1232,7 +1232,7 @@ ScLookupCache & ScDocument::GetLookupCache( const ScRange & rRange )
ScLookupCache
*
pCache
=
nullptr
;
if
(
!
pLookupCacheMapImpl
)
pLookupCacheMapImpl
=
new
ScLookupCacheMapImpl
;
ScLookupCacheMap
::
iterator
it
(
pLookupCacheMapImpl
->
aCacheMap
.
find
(
rRange
));
auto
it
(
pLookupCacheMapImpl
->
aCacheMap
.
find
(
rRange
));
if
(
it
==
pLookupCacheMapImpl
->
aCacheMap
.
end
())
{
pCache
=
new
ScLookupCache
(
this
,
rRange
);
...
...
@@ -1256,7 +1256,7 @@ void ScDocument::AddLookupCache( ScLookupCache & rCache )
void
ScDocument
::
RemoveLookupCache
(
ScLookupCache
&
rCache
)
{
ScLookupCacheMap
::
iterator
it
(
pLookupCacheMapImpl
->
aCacheMap
.
find
(
auto
it
(
pLookupCacheMapImpl
->
aCacheMap
.
find
(
rCache
.
getRange
()));
if
(
it
==
pLookupCacheMapImpl
->
aCacheMap
.
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