summaryrefslogtreecommitdiff
path: root/sw/source/core/docnode/nodes.cxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-13 12:12:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-13 13:29:26 +0200
commit51f807841a9242eec85172c6503083294c0c0042 (patch)
tree13fd0d436d9f02bb5b67dd0701287bf132c55dc6 /sw/source/core/docnode/nodes.cxx
parent530d0e0569342742d7bcf529b77ba4a409cf01a9 (diff)
static_cast after dynamic_cast
Change-Id: I68c20dfbedb84660cf25df785e1e0b13a7592994 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104229 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/docnode/nodes.cxx')
-rw-r--r--sw/source/core/docnode/nodes.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/core/docnode/nodes.cxx b/sw/source/core/docnode/nodes.cxx
index c462bc7e6835..9d7561913550 100644
--- a/sw/source/core/docnode/nodes.cxx
+++ b/sw/source/core/docnode/nodes.cxx
@@ -558,10 +558,9 @@ bool SwNodes::MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes,
}
}
- if( dynamic_cast<const SwDDETable*>(&pTableNd->GetTable()) != nullptr )
+ if( auto pDDETable = dynamic_cast<SwDDETable*>(&pTableNd->GetTable()) )
{
- SwDDEFieldType* pTyp = static_cast<SwDDETable&>(pTableNd->
- GetTable()).GetDDEFieldType();
+ SwDDEFieldType* pTyp = pDDETable->GetDDEFieldType();
if( pTyp )
{
if( rNodes.IsDocNodes() )