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
317c8e5c
Kaydet (Commit)
317c8e5c
authored
Mar 20, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use static_cast<> and typeid, its faster
Change-Id: I80f66686a09dfe629b9aa9f9cb7babe1c5a6edac
üst
f18d1141
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
calbck.hxx
sw/inc/calbck.hxx
+5
-5
No files found.
sw/inc/calbck.hxx
Dosyayı görüntüle @
317c8e5c
...
@@ -120,13 +120,13 @@ public:
...
@@ -120,13 +120,13 @@ public:
virtual
void
Modify
(
const
SfxPoolItem
*
pOldValue
,
const
SfxPoolItem
*
pNewValue
)
virtual
void
Modify
(
const
SfxPoolItem
*
pOldValue
,
const
SfxPoolItem
*
pNewValue
)
{
CheckRegistration
(
pOldValue
,
pNewValue
);
}
{
CheckRegistration
(
pOldValue
,
pNewValue
);
}
// when overriding this, you MUST call SwClient::SwClientModify() in the override!
// when overriding this, you MUST call SwClient::SwClientModify() in the override!
virtual
void
SwClientNotify
(
const
SwModify
&
,
const
SfxHint
&
rHint
)
virtual
void
SwClientNotify
(
const
SwModify
&
,
const
SfxHint
&
rHint
)
SAL_OVERRIDE
SAL_OVERRIDE
{
{
// assuming the compiler to realize that a dynamic_cast to a final class is just a pointer compare ...
if
(
typeid
(
rHint
)
==
typeid
(
sw
::
LegacyModifyHint
))
auto
pLegacyHint
(
dynamic_cast
<
const
sw
::
LegacyModifyHint
*>
(
&
rHint
));
{
if
(
pLegacyHint
)
auto
pLegacyHint
(
static_cast
<
const
sw
::
LegacyModifyHint
*>
(
&
rHint
));
Modify
(
pLegacyHint
->
m_pOld
,
pLegacyHint
->
m_pNew
);
Modify
(
pLegacyHint
->
m_pOld
,
pLegacyHint
->
m_pNew
);
}
};
};
// in case an SwModify object is destroyed that itself is registered in another SwModify,
// in case an SwModify object is destroyed that itself is registered in another SwModify,
...
...
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