summaryrefslogtreecommitdiff
path: root/sw/source/core/docnode/node.cxx
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-05-29 11:50:52 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2018-06-08 21:51:33 +0200
commitb8c67547284919c208d6be9a4fe4f8062afb5b87 (patch)
tree71e1803ee3d50cd6f60ee2038d82707aa2174cf4 /sw/source/core/docnode/node.cxx
parent75e0f0e6c1ef98d1b5bd10330774307cbce6cfc1 (diff)
sw_redlinehide: use unwrapping SwIterator when iterating SwTextNode
... or SwContentNode. Change-Id: Ib05038fd5a5550f5ed6dd90e129a2d7c3da74c1e
Diffstat (limited to 'sw/source/core/docnode/node.cxx')
-rw-r--r--sw/source/core/docnode/node.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/docnode/node.cxx b/sw/source/core/docnode/node.cxx
index 1e6abe609702..e9992790c2eb 100644
--- a/sw/source/core/docnode/node.cxx
+++ b/sw/source/core/docnode/node.cxx
@@ -717,7 +717,7 @@ SwFrameFormat* SwNode::GetFlyFormat() const
{
if( IsContentNode() )
{
- SwContentFrame* pFrame = SwIterator<SwContentFrame,SwContentNode>( *static_cast<const SwContentNode*>(this) ).First();
+ SwContentFrame* pFrame = SwIterator<SwContentFrame, SwContentNode, sw::IteratorMode::UnwrapMulti>(*static_cast<const SwContentNode*>(this)).First();
if( pFrame )
pRet = pFrame->FindFlyFrame()->GetFormat();
}
@@ -1312,7 +1312,7 @@ void SwContentNode::DelFrames( bool bIsDisposeAccTable )
if( !HasWriterListeners() )
return;
- SwIterator<SwContentFrame,SwContentNode> aIter( *this );
+ SwIterator<SwContentFrame, SwContentNode, sw::IteratorMode::UnwrapMulti> aIter(*this);
for( SwContentFrame* pFrame = aIter.First(); pFrame; pFrame = aIter.Next() )
{
// #i27138#
@@ -1393,7 +1393,7 @@ bool SwContentNode::GetInfo( SfxPoolItem& rInfo ) const
case RES_CONTENT_VISIBLE:
{
static_cast<SwPtrMsgPoolItem&>(rInfo).pObject =
- SwIterator<SwFrame,SwContentNode>(*this).First();
+ SwIterator<SwFrame, SwContentNode, sw::IteratorMode::UnwrapMulti>(*this).First();
}
return false;
}