| @@ -1,22 +1,27 @@ | | | @@ -1,22 +1,27 @@ |
1 | $NetBSD: patch-src_Utilities_Set.cpp,v 1.1 2011/11/24 14:00:53 joerg Exp $ | | 1 | $NetBSD: patch-src_Utilities_Set.cpp,v 1.2 2012/12/22 20:01:45 joerg Exp $ |
2 | | | 2 | |
3 | --- src/Utilities/Set.cpp.orig 2011-11-24 02:03:09.000000000 +0000 | | 3 | --- src/Utilities/Set.cpp.orig 2008-03-17 18:56:18.000000000 +0000 |
4 | +++ src/Utilities/Set.cpp | | 4 | +++ src/Utilities/Set.cpp |
5 | @@ -39,7 +39,7 @@ QValueList<T> Utilities::Set<T>::toList( | | 5 | @@ -39,7 +39,7 @@ QValueList<T> Utilities::Set<T>::toList( |
6 | } | | 6 | } |
7 | | | 7 | |
8 | template <class T> | | 8 | template <class T> |
9 | -Utilities::Set<T>::Set<T>& Utilities::Set<T>::operator+=(const Set<T>& other) | | 9 | -Utilities::Set<T>::Set<T>& Utilities::Set<T>::operator+=(const Set<T>& other) |
10 | +Utilities::Set<T>& Utilities::Set<T>::operator+=(const Set<T>& other) | | 10 | +Utilities::Set<T>& Utilities::Set<T>::operator+=(const Set<T>& other) |
11 | { | | 11 | { |
12 | for (typename Set<T>::const_iterator i = other.begin(); | | 12 | for (typename Set<T>::const_iterator i = other.begin(); |
13 | i != other.end(); ++i) | | 13 | i != other.end(); ++i) |
14 | @@ -48,7 +48,7 @@ Utilities::Set<T>::Set<T>& Utilities::Se | | 14 | @@ -48,11 +48,11 @@ Utilities::Set<T>::Set<T>& Utilities::Se |
15 | } | | 15 | } |
16 | | | 16 | |
17 | template <class T> | | 17 | template <class T> |
18 | -Utilities::Set<T>::Set<T>& Utilities::Set<T>::operator-=(const Set<T>& other) | | 18 | -Utilities::Set<T>::Set<T>& Utilities::Set<T>::operator-=(const Set<T>& other) |
19 | +Utilities::Set<T>& Utilities::Set<T>::operator-=(const Set<T>& other) | | 19 | +Utilities::Set<T>& Utilities::Set<T>::operator-=(const Set<T>& other) |
20 | { | | 20 | { |
21 | for (typename Set<T>::const_iterator i = other.begin(); | | 21 | for (typename Set<T>::const_iterator i = other.begin(); |
22 | i != other.end(); ++i) | | 22 | i != other.end(); ++i) |
| | | 23 | - erase(*i); |
| | | 24 | + this->erase(*i); |
| | | 25 | return *this; |
| | | 26 | } |
| | | 27 | |