From f9c92771af05886c2d35f4446d514488fd448109 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 13 May 2016 16:11:09 +0200 Subject: sw: document the MoveInvalidXAccToEnd() oddity Change-Id: I9e1e3b277a75a2f8c95fa71308af6aff7d81ccc7 --- sw/source/core/access/accmap.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx index 24dae46d111c..4c2aaaec4698 100644 --- a/sw/source/core/access/accmap.cxx +++ b/sw/source/core/access/accmap.cxx @@ -516,10 +516,12 @@ public: return mbFiring; } - void MoveInvalidXAccToEnd(); + void MoveMissingXAccToEnd(); }; -void SwAccessibleEventList_Impl::MoveInvalidXAccToEnd() +// see comment in SwAccessibleMap::InvalidatePosOrSize() +// last case "else if(pParent)" for why this surprising hack exists +void SwAccessibleEventList_Impl::MoveMissingXAccToEnd() { size_t nSize = size(); if (nSize < 2 ) @@ -3085,7 +3087,7 @@ void SwAccessibleMap::FireEvents() if( mpEvents ) { mpEvents->SetFiring(); - mpEvents->MoveInvalidXAccToEnd(); + mpEvents->MoveMissingXAccToEnd(); for( auto const& aEvent : *mpEvents ) FireEvent(aEvent); -- cgit