summaryrefslogtreecommitdiff
path: root/sw/source/core/docnode/nodes.cxx
diff options
context:
space:
mode:
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() )