mirror of
https://github.com/taglib/taglib.git
synced 2025-06-03 09:08:09 -04:00
Funny that there managed to be no operator!= for String for so long.
This commit is contained in:
parent
6ea8599313
commit
baafb3e290
@ -567,6 +567,11 @@ bool String::operator==(const String &s) const
|
||||
return d == s.d || d->data == s.d->data;
|
||||
}
|
||||
|
||||
bool String::operator!=(const String &s) const
|
||||
{
|
||||
return !operator==(s);
|
||||
}
|
||||
|
||||
String &String::operator+=(const String &s)
|
||||
{
|
||||
detach();
|
||||
|
@ -357,6 +357,12 @@ namespace TagLib {
|
||||
*/
|
||||
bool operator==(const String &s) const;
|
||||
|
||||
/*!
|
||||
* Compares each character of the String with each character of \a s and
|
||||
* returns false if the strings match.
|
||||
*/
|
||||
bool operator!=(const String &s) const;
|
||||
|
||||
/*!
|
||||
* Appends \a s to the end of the String.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user