[Libreoffice-commits] core.git: sw/inc
Bjoern Michaelsen (via logerrit)
logerrit at kemper.freedesktop.org
Tue Feb 23 16:21:22 UTC 2021
sw/inc/swevent.hxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit a3f83ecbeab33244b526ec68ca0f2034745a6371
Author: Bjoern Michaelsen <bjoern.michaelsen at libreoffice.org>
AuthorDate: Mon Feb 22 20:20:54 2021 +0100
Commit: Bjoern Michaelsen <bjoern.michaelsen at libreoffice.org>
CommitDate: Tue Feb 23 17:20:42 2021 +0100
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 at libreoffice.org>
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();
More information about the Libreoffice-commits
mailing list