diff -r 2f85d4d286e5 -r 72ad83a67165 src/misc.h --- a/src/misc.h Thu Dec 05 13:51:52 2013 +0200 +++ b/src/misc.h Thu Dec 05 23:20:50 2013 +0200 @@ -182,8 +182,7 @@ template void removeDuplicates (QList& a) { std::sort (a.begin(), a.end()); - typename QList::iterator pos = std::unique (a.begin(), a.end()); - a.erase (pos, a.end()); + a.erase (std::unique (a.begin(), a.end()), a.end()); } #endif // LDFORGE_MISC_H