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
f2940a4b
Kaydet (Commit)
f2940a4b
authored
Tem 21, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
rename SfxItemDesruptor -> SfxItemDisruptor
Change-Id: I7cc9fa3ab6aebc541df4708e29b530f8021b14ba
üst
dc0af9ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
poolitem.hxx
include/svl/poolitem.hxx
+1
-1
itemdel.cxx
svtools/source/misc/itemdel.cxx
+9
-9
No files found.
include/svl/poolitem.hxx
Dosyayı görüntüle @
f2940a4b
...
@@ -157,7 +157,7 @@ class SfxItemSet;
...
@@ -157,7 +157,7 @@ class SfxItemSet;
class
SVL_DLLPUBLIC
SfxPoolItem
class
SVL_DLLPUBLIC
SfxPoolItem
{
{
friend
class
SfxItemPool
;
friend
class
SfxItemPool
;
friend
class
SfxItemD
e
sruptor_Impl
;
friend
class
SfxItemD
i
sruptor_Impl
;
friend
class
SfxItemPoolCache
;
friend
class
SfxItemPoolCache
;
friend
class
SfxItemSet
;
friend
class
SfxItemSet
;
friend
class
SfxVoidItem
;
friend
class
SfxVoidItem
;
...
...
svtools/source/misc/itemdel.cxx
Dosyayı görüntüle @
f2940a4b
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#include <svl/itempool.hxx>
#include <svl/itempool.hxx>
class
SfxItemD
e
sruptor_Impl
:
private
boost
::
noncopyable
class
SfxItemD
i
sruptor_Impl
:
private
boost
::
noncopyable
{
{
SfxPoolItem
*
pItem
;
SfxPoolItem
*
pItem
;
Link
aLink
;
Link
aLink
;
...
@@ -37,27 +37,27 @@ private:
...
@@ -37,27 +37,27 @@ private:
DECL_LINK
(
Delete
,
void
*
);
DECL_LINK
(
Delete
,
void
*
);
public
:
public
:
SfxItemD
e
sruptor_Impl
(
SfxPoolItem
*
pItemToDesrupt
);
SfxItemD
i
sruptor_Impl
(
SfxPoolItem
*
pItemToDesrupt
);
void
LaunchDeleteOnIdle
();
void
LaunchDeleteOnIdle
();
~
SfxItemD
e
sruptor_Impl
();
~
SfxItemD
i
sruptor_Impl
();
};
};
SfxItemD
esruptor_Impl
::
SfxItemDe
sruptor_Impl
(
SfxPoolItem
*
pItemToDesrupt
)
:
SfxItemD
isruptor_Impl
::
SfxItemDi
sruptor_Impl
(
SfxPoolItem
*
pItemToDesrupt
)
:
pItem
(
pItemToDesrupt
),
pItem
(
pItemToDesrupt
),
aLink
(
LINK
(
this
,
SfxItemD
e
sruptor_Impl
,
Delete
)
)
aLink
(
LINK
(
this
,
SfxItemD
i
sruptor_Impl
,
Delete
)
)
{
{
DBG_ASSERT
(
0
==
pItem
->
GetRefCount
(),
"disrupting pooled item"
);
DBG_ASSERT
(
0
==
pItem
->
GetRefCount
(),
"disrupting pooled item"
);
pItem
->
SetKind
(
SFX_ITEMS_DELETEONIDLE
);
pItem
->
SetKind
(
SFX_ITEMS_DELETEONIDLE
);
}
}
void
SfxItemD
e
sruptor_Impl
::
LaunchDeleteOnIdle
()
void
SfxItemD
i
sruptor_Impl
::
LaunchDeleteOnIdle
()
{
{
// process in Idle
// process in Idle
Application
::
InsertIdleHdl
(
aLink
,
1
);
Application
::
InsertIdleHdl
(
aLink
,
1
);
}
}
SfxItemD
esruptor_Impl
::~
SfxItemDe
sruptor_Impl
()
SfxItemD
isruptor_Impl
::~
SfxItemDi
sruptor_Impl
()
{
{
// remove from Idle-Handler
// remove from Idle-Handler
...
@@ -69,7 +69,7 @@ SfxItemDesruptor_Impl::~SfxItemDesruptor_Impl()
...
@@ -69,7 +69,7 @@ SfxItemDesruptor_Impl::~SfxItemDesruptor_Impl()
delete
pItem
;
delete
pItem
;
}
}
IMPL_LINK_NOARG
(
SfxItemD
e
sruptor_Impl
,
Delete
)
IMPL_LINK_NOARG
(
SfxItemD
i
sruptor_Impl
,
Delete
)
{
{
delete
this
;
delete
this
;
return
0
;
return
0
;
...
@@ -78,7 +78,7 @@ IMPL_LINK_NOARG(SfxItemDesruptor_Impl, Delete)
...
@@ -78,7 +78,7 @@ IMPL_LINK_NOARG(SfxItemDesruptor_Impl, Delete)
void
DeleteItemOnIdle
(
SfxPoolItem
*
pItem
)
void
DeleteItemOnIdle
(
SfxPoolItem
*
pItem
)
{
{
DBG_ASSERT
(
0
==
pItem
->
GetRefCount
(),
"deleting item in use"
);
DBG_ASSERT
(
0
==
pItem
->
GetRefCount
(),
"deleting item in use"
);
SfxItemD
esruptor_Impl
*
pDesruptor
=
new
SfxItemDe
sruptor_Impl
(
pItem
);
SfxItemD
isruptor_Impl
*
pDesruptor
=
new
SfxItemDi
sruptor_Impl
(
pItem
);
pDesruptor
->
LaunchDeleteOnIdle
();
pDesruptor
->
LaunchDeleteOnIdle
();
}
}
...
...
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