More like this:
Qt Code:
QList< Something * > things = a_map.values(); foreach( Something * thing, things ) { delete thing; }To copy to clipboard, switch view to plain text mode
Edit: although upon reading the docs, it looks like your code would accomplish the same thing. I am more familiar with std:: map<>, where the iterator returns an std:: pair<> containing the key and value.
Bookmarks