src/misc.h

changeset 539
72ad83a67165
parent 538
2f85d4d286e5
child 541
0e38beeb050a
--- 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<class T> void removeDuplicates (QList<T>& a)
 {	std::sort (a.begin(), a.end());
-	typename QList<T>::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

mercurial