Translations:Development/Tutorials/Common Programming Mistakes/49/en

From KDE TechBase
Revision as of 07:31, 26 October 2019 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This code will potentially crash because it is a dangling iterator after the call to erase(). You have to rewrite the code this way: