Re: remove followed by a push_back of same var (SwSpellDialogChildWindow)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
LibreOffice mailing list
LibreOffice@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/libreoffice




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux