diff options
Diffstat (limited to 'AK')
-rw-r--r-- | AK/String.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/AK/String.cpp b/AK/String.cpp index 6dec4c1438..b975781de0 100644 --- a/AK/String.cpp +++ b/AK/String.cpp @@ -58,10 +58,10 @@ bool String::operator<(const String& other) const bool String::operator>(const String& other) const { - if (!m_impl) - return other.m_impl; - if (!other.m_impl) + return m_impl; + + if (!m_impl) return false; return strcmp(characters(), other.characters()) > 0; |