summaryrefslogtreecommitdiffstats
path: root/sw/source/core/unocore/unoobj2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/unocore/unoobj2.cxx')
-rw-r--r--sw/source/core/unocore/unoobj2.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/unocore/unoobj2.cxx b/sw/source/core/unocore/unoobj2.cxx
index 7614f0a314..5cb73bf7b8 100644
--- a/sw/source/core/unocore/unoobj2.cxx
+++ b/sw/source/core/unocore/unoobj2.cxx
@@ -121,9 +121,9 @@ struct FrameClientSortListLess
return;
for(const auto pAnchoredObj : *pObjs)
{
- SwFrameFormat& rFormat = pAnchoredObj->GetFrameFormat();
+ SwFrameFormat* pFormat = pAnchoredObj->GetFrameFormat();
// Filter out textboxes, which are not interesting at a UNO level.
- if(SwTextBoxHelper::isTextBox(&rFormat, RES_FLYFRMFMT))
+ if(SwTextBoxHelper::isTextBox(pFormat, RES_FLYFRMFMT))
continue;
if (nAnchorType == RndStdIds::FLY_AT_PARA)
@@ -137,11 +137,11 @@ struct FrameClientSortListLess
}
}
- if(rFormat.GetAnchor().GetAnchorId() == nAnchorType)
+ if(pFormat->GetAnchor().GetAnchorId() == nAnchorType)
{
- const sal_Int32 nIdx = rFormat.GetAnchor().GetAnchorContentOffset();
- const auto nOrder = rFormat.GetAnchor().GetOrder();
- rFrames.emplace_back(nIdx, nOrder, std::make_unique<sw::FrameClient>(&rFormat));
+ const sal_Int32 nIdx = pFormat->GetAnchor().GetAnchorContentOffset();
+ const auto nOrder = pFormat->GetAnchor().GetOrder();
+ rFrames.emplace_back(nIdx, nOrder, std::make_unique<sw::FrameClient>(pFormat));
}
}
}