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

2018-11-24 Thread Julien Nabet
On 24/11/2018 09:12, Kaganski Mike wrote: ... 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? ok then. Thank you for your feedback Mike. Julien

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

2018-11-24 Thread Kaganski Mike
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 } >

remove followed by a push_back of same var (SwSpellDialogChildWindow)

2018-11-23 Thread julien2412
Hello, 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