diff options
Diffstat (limited to 'include/utils/String8.h')
-rw-r--r-- | include/utils/String8.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/utils/String8.h b/include/utils/String8.h index a129222..cef8eca 100644 --- a/include/utils/String8.h +++ b/include/utils/String8.h @@ -418,9 +418,7 @@ inline bool String8::operator<=(const String8& other) const inline bool String8::operator==(const String8& other) const { - return (SharedBuffer::sizeFromData(mString) == - SharedBuffer::sizeFromData(other.mString)) && - strcmp(mString, other.mString) == 0; + return strcmp(mString, other.mString) == 0; } inline bool String8::operator!=(const String8& other) const |