sw/source/core/access/accfrmobj.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit 1c1647e6ee252fe68d7406d01043e88f1721590f Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Sun Aug 21 19:54:16 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sun Aug 21 22:22:31 2022 +0200 tdf#112865 assigning to mpDrawObj here is unnecessary because if mpFrame is set, the value of mpDrawObj is ignored. This shaves 2% off load time Change-Id: Ib64bb10fe03ab9623c94c8f285dd848ca13df815 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138643 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sw/source/core/access/accfrmobj.cxx b/sw/source/core/access/accfrmobj.cxx index f78dc2d155db..d8e78836b2a1 100644 --- a/sw/source/core/access/accfrmobj.cxx +++ b/sw/source/core/access/accfrmobj.cxx @@ -106,9 +106,7 @@ void SwAccessibleChild::Init( const SdrObject* pDrawObj ) void SwAccessibleChild::Init( const SwFrame* pFrame ) { mpFrame = pFrame; - mpDrawObj = mpFrame && mpFrame->IsFlyFrame() - ? static_cast < const SwFlyFrame * >( mpFrame )->GetVirtDrawObj() - : nullptr; + mpDrawObj = nullptr; mpWindow = nullptr; }