Add a != operator to match the Prefix's == operator
This commit is contained in:
@@ -99,6 +99,11 @@ bool Prefix::operator==(const Prefix &other) const
|
||||
std::tie(other.first, other.second);
|
||||
}
|
||||
|
||||
bool Prefix::operator!=(const Prefix &other) const
|
||||
{
|
||||
return !(*this == other);
|
||||
}
|
||||
|
||||
bool Prefix::isStartOf(const QString &string) const
|
||||
{
|
||||
if (string.size() == 0)
|
||||
|
||||
@@ -12,6 +12,7 @@ class Prefix
|
||||
public:
|
||||
Prefix(const QString &string);
|
||||
bool operator==(const Prefix &other) const;
|
||||
bool operator!=(const Prefix &other) const;
|
||||
bool isStartOf(const QString &string) const;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user