office-gobmx/sw/source/uibase
Jim Raykowski be32cb9210 Assert downcast
In this case it should be guaranteed that pField is a pointer to
SwGetRefField by:

else if (pField->GetTypeId() == SwFieldTypesEnum::GetRef)

To follow best practice to allow some diagnostic in debug mode,
assert(dynamic_cast) before using static_cast to downcast.

Change-Id: Ib2c6fb4259b66d5059f1886e23d05fc1c2aa3682
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137578
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-07-30 07:07:22 +02:00
..
app convert CRSR_SKIP_* to typed enum 2022-07-26 22:42:16 +02:00
chrdlg
config
dbui
dialog
dochdl elide some temporaries when constructing SwPosition 2022-07-26 18:54:47 +02:00
docvw convert CRSR_SKIP_* to typed enum 2022-07-26 22:42:16 +02:00
envelp
fldui convert CRSR_SKIP_* to typed enum 2022-07-26 22:42:16 +02:00
frmdlg
globdoc
inc sal_uLong->sal_Int32 in the Find/Search methods 2022-07-26 22:43:25 +02:00
index convert CRSR_SKIP_* to typed enum 2022-07-26 22:42:16 +02:00
lingu use more SwPaM::StartEnd 2022-07-29 13:20:56 +02:00
misc
ribbar
shells lok: Enable sidebar in Math 2022-07-28 07:37:31 +02:00
sidebar
table
uitest
uiview sal_uLong->sal_Int32 in the Find/Search methods 2022-07-26 22:43:25 +02:00
uno use more SwPaM::StartEnd 2022-07-29 13:20:56 +02:00
utlui Assert downcast 2022-07-30 07:07:22 +02:00
web
wrtsh sal_uLong->sal_Int32 in the Find/Search methods 2022-07-26 22:43:25 +02:00