summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2021-02-22 20:20:54 +0100
committerBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2021-02-23 17:20:42 +0100
commita3f83ecbeab33244b526ec68ca0f2034745a6371 (patch)
treeb7dd9a16f990f3ffb67cc4a003324a4a05aaa5d2 /sw/inc
parent390d24a3f7d6248832b711697a3916ec4a27a593 (diff)
tdf#140226: use StaticWhichCast
Change-Id: I7f1345da0e67bfe14b119b92f32faa926b2ab603 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111356 Tested-by: Jenkins Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/swevent.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/swevent.hxx b/sw/inc/swevent.hxx
index 425db6b6e3f6..e18020320544 100644
--- a/sw/inc/swevent.hxx
+++ b/sw/inc/swevent.hxx
@@ -127,10 +127,10 @@ struct SwCallMouseEvent final
switch(pLegacy->GetWhich())
{
case RES_FMT_CHG:
- bClear |= static_cast<SwFormatChg const*>(pLegacy->m_pOld)->pChangedFormat == PTR.pFormat;
+ bClear |= pLegacy->m_pOld->StaticWhichCast(RES_FMT_CHG).pChangedFormat == PTR.pFormat;
break;
case RES_REMOVE_UNO_OBJECT:
- bClear |= static_cast<SwPtrMsgPoolItem const*>(pLegacy->m_pOld)->pObject == PTR.pFormat;
+ bClear |= pLegacy->m_pOld->StaticWhichCast(RES_REMOVE_UNO_OBJECT).pObject == PTR.pFormat;
}
if(bClear)
Clear();