[Libreoffice-commits] core.git: sw/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sat Apr 4 20:12:47 UTC 2020
sw/source/core/layout/frmtool.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 57b8e4ac7fa55c32497068be48fd4a11cf583c8d
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Apr 4 19:21:01 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sat Apr 4 22:12:14 2020 +0200
dynamic cast followed by static cast
Change-Id: I4baf27d952f173ec515938df754b664b527d16f1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91694
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx
index c99eb61b82d8..d9a24922dcf7 100644
--- a/sw/source/core/layout/frmtool.cxx
+++ b/sw/source/core/layout/frmtool.cxx
@@ -2995,9 +2995,8 @@ static void lcl_Regist( SwPageFrame *pPage, const SwFrame *pAnch )
SwSortedObjs *pObjs = const_cast<SwSortedObjs*>(pAnch->GetDrawObjs());
for (SwAnchoredObject* pObj : *pObjs)
{
- if ( dynamic_cast<const SwFlyFrame*>( pObj) != nullptr )
+ if (SwFlyFrame* pFly = dynamic_cast<SwFlyFrame*>(pObj))
{
- SwFlyFrame *pFly = static_cast<SwFlyFrame*>(pObj);
// register (not if already known)
// #i28701# - use new method <GetPageFrame()>
SwPageFrame *pPg = pFly->IsFlyFreeFrame()
More information about the Libreoffice-commits
mailing list