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
9cbc25dd
Kaydet (Commit)
9cbc25dd
authored
Şub 12, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Revert "coverity#736486 try and make coverity see through this better"
This reverts commit
a0bae848
.
üst
27fae00b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
itemdel.cxx
svtools/source/misc/itemdel.cxx
+9
-13
No files found.
svtools/source/misc/itemdel.cxx
Dosyayı görüntüle @
9cbc25dd
...
...
@@ -38,13 +38,12 @@ class SfxItemDesruptor_Impl
Link
aLink
;
private
:
DECL_LINK
(
Delete
,
SfxItemDesruptor_Impl
*
);
SfxItemDesruptor_Impl
(
const
SfxItemDesruptor_Impl
&
);
// n.i.
DECL_LINK
(
Delete
,
void
*
);
SfxItemDesruptor_Impl
(
const
SfxItemDesruptor_Impl
&
);
// n.i.
public
:
SfxItemDesruptor_Impl
(
SfxPoolItem
*
pItemToDesrupt
);
void
LaunchDeleteOnIdle
();
~
SfxItemDesruptor_Impl
();
SfxItemDesruptor_Impl
(
SfxPoolItem
*
pItemToDesrupt
);
~
SfxItemDesruptor_Impl
();
};
// ------------------------------------------------------------------------
...
...
@@ -56,10 +55,7 @@ SfxItemDesruptor_Impl::SfxItemDesruptor_Impl( SfxPoolItem *pItemToDesrupt ):
DBG_ASSERT
(
0
==
pItem
->
GetRefCount
(),
"disrupting pooled item"
);
pItem
->
SetKind
(
SFX_ITEMS_DELETEONIDLE
);
}
void
SfxItemDesruptor_Impl
::
LaunchDeleteOnIdle
()
{
// process in Idle
GetpApp
()
->
InsertIdleHdl
(
aLink
,
1
);
}
...
...
@@ -79,18 +75,18 @@ SfxItemDesruptor_Impl::~SfxItemDesruptor_Impl()
}
// ------------------------------------------------------------------------
IMPL_LINK
(
SfxItemDesruptor_Impl
,
Delete
,
SfxItemDesruptor_Impl
*
,
pImpl
)
IMPL_LINK
_NOARG
(
SfxItemDesruptor_Impl
,
Delete
)
{
{
DBG_CHKTHIS
(
SfxItemDesruptor_Impl
,
0
);}
delete
pImpl
;
delete
this
;
return
0
;
}
void
DeleteItemOnIdle
(
SfxPoolItem
*
pItem
)
// ------------------------------------------------------------------------
void
DeleteItemOnIdle
(
SfxPoolItem
*
pItem
)
{
DBG_ASSERT
(
0
==
pItem
->
GetRefCount
(),
"deleting item in use"
);
SfxItemDesruptor_Impl
*
pDesruptor
=
new
SfxItemDesruptor_Impl
(
pItem
);
pDesruptor
->
LaunchDeleteOnIdle
();
new
SfxItemDesruptor_Impl
(
pItem
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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