diff --git a/AK/FlyString.h b/AK/FlyString.h index 7862f0eee0..f69196fd5d 100644 --- a/AK/FlyString.h +++ b/AK/FlyString.h @@ -32,7 +32,7 @@ namespace AK { class FlyString { public: - FlyString() {} + FlyString() { } FlyString(const FlyString& other) : m_impl(other.impl()) { @@ -93,12 +93,11 @@ public: template bool is_one_of(const T& string, Rest... rest) const { - if (string == *this) + if (*this == string) return true; return is_one_of(rest...); } - private: bool is_one_of() const { return false; } diff --git a/AK/String.h b/AK/String.h index 1d04b9fafa..3c175562d3 100644 --- a/AK/String.h +++ b/AK/String.h @@ -230,7 +230,7 @@ public: template bool is_one_of(const T& string, Rest... rest) const { - if (string == *this) + if (*this == string) return true; return is_one_of(rest...); }