Branch oldpackages for 14.07
[14.07/packages.git] / libs / taglib / patches / 100-uclibc++-compat.patch
1 --- a/taglib/toolkit/tlist.h
2 +++ b/taglib/toolkit/tlist.h
3 @@ -226,6 +226,7 @@ namespace TagLib {
4       * the same.
5       */
6      bool operator==(const List<T> &l) const;
7 +    bool operator!=(const List<T> &l) const;
8  
9    protected:
10      /*
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;
15  }
16  
17 +template <class T>
18 +bool List<T>::operator!=(const List<T> &l) const
19 +{
20 +  return !(operator==(l));
21 +}
22 +
23  ////////////////////////////////////////////////////////////////////////////////
24  // protected members
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;
30  }
31  
32 +bool String::operator!=(const String &s) const
33 +{
34 +  return !(operator==(s));
35 +}
36 +
37  String &String::operator+=(const String &s)
38  {
39    detach();
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.
44       */
45      bool operator==(const String &s) const;
46 +    bool operator!=(const String &s) const;
47  
48      /*!
49       * Appends \a s to the end of the String.