summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/doclay.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/doc/doclay.cxx')
-rw-r--r--sw/source/core/doc/doclay.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/doc/doclay.cxx b/sw/source/core/doc/doclay.cxx
index 43b4408ec080..556ff77fdb78 100644
--- a/sw/source/core/doc/doclay.cxx
+++ b/sw/source/core/doc/doclay.cxx
@@ -1571,11 +1571,11 @@ bool SwDoc::IsInHeaderFooter( const SwNodeIndex& rIdx ) const
checkFormats.push_back( pFormat );
}
#endif
- std::vector<SwFrameFormat*> const*const pFlys(pFlyNd->GetAnchoredFlys());
+ std::vector<SwFrameFormat*> const & rFlys(pFlyNd->GetAnchoredFlys());
bool bFound(false);
- for (size_t i = 0; pFlys && i < pFlys->size(); ++i)
+ for (size_t i = 0; i < rFlys.size(); ++i)
{
- const SwFrameFormat *const pFormat = (*pFlys)[i];
+ const SwFrameFormat *const pFormat = rFlys[i];
const SwNodeIndex* pIdx = pFormat->GetContent().GetContentIdx();
if( pIdx && pFlyNd == &pIdx->GetNode() )
{