office-gobmx/sw/source
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
..
core tdf#149467 fix re-entrance crash 2022-07-30 06:10:36 +02:00
filter use more SwPaM::StartEnd 2022-07-29 13:20:56 +02:00
ui Fix typos 2022-07-27 08:59:46 +02:00
uibase Assert downcast 2022-07-30 07:07:22 +02:00