Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contactsearch.cpp:201]: (error) Iterator 'itr' used after element has been erased. #371

Open
dcb314 opened this issue Aug 11, 2015 · 0 comments

Comments

@dcb314
Copy link

dcb314 commented Aug 11, 2015

Source code is

        d->accounts.erase(itr);
        if (itr->isActive())
            emit requestRemoved(name);

After something has been erased, it's gone. Calling isActive on it won't work.
Suggest RTFM for C++ STL erase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant