1 --- a/taglib/toolkit/tlist.h
2 +++ b/taglib/toolkit/tlist.h
3 @@ -226,6 +226,7 @@ namespace TagLib {
6 bool operator==(const List<T> &l) const;
7 + bool operator!=(const List<T> &l) const;
11 --- a/taglib/toolkit/tlist.tcc
12 +++ b/taglib/toolkit/tlist.tcc
13 @@ -300,6 +300,12 @@ bool List<T>::operator==(const List<T> &
14 return d->list == l.d->list;
18 +bool List<T>::operator!=(const List<T> &l) const
20 + return !(operator==(l));
23 ////////////////////////////////////////////////////////////////////////////////
25 ////////////////////////////////////////////////////////////////////////////////
26 --- a/taglib/toolkit/tstring.cpp
27 +++ b/taglib/toolkit/tstring.cpp
28 @@ -546,6 +546,11 @@ bool String::operator==(const String &s)
29 return d == s.d || d->data == s.d->data;
32 +bool String::operator!=(const String &s) const
34 + return !(operator==(s));
37 String &String::operator+=(const String &s)
40 --- a/taglib/toolkit/tstring.h
41 +++ b/taglib/toolkit/tstring.h
42 @@ -342,6 +342,7 @@ namespace TagLib {
43 * returns true if the strings match.
45 bool operator==(const String &s) const;
46 + bool operator!=(const String &s) const;
49 * Appends \a s to the end of the String.