remove followed by a push_back of same var (SwSpellDialogChildWindow)

Kaganski Mike mikekaganski at hotmail.com
Sat Nov 24 08:12:21 UTC 2018


On 24.11.2018 10:23, julien2412 wrote:
> I noticed these lines:
>      737         if(pCurrentTextObj)
>      738         {
>      739             m_pSpellState->m_aTextObjects.remove(pCurrentTextObj);
>      740
> m_pSpellState->m_aTextObjects.push_back(pCurrentTextObj);
>      741         }
> See
> https://opengrok.libreoffice.org/xref/core/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx#737
> 
> Is it a special trick so some other vars are notified or just a plain error?

Something to guarantee that there is only a single instance of it, and 
it's the top element?

-- 
Best regards,
Mike Kaganski


More information about the LibreOffice mailing list