diff options
author | arthurhsu <arthurhsu@google.com> | 2014-06-09 21:12:10 +0000 |
---|---|---|
committer | arthurhsu <arthurhsu@google.com> | 2014-06-09 21:12:10 +0000 |
commit | 97207cee12e945fd45471488f555c76b17644dec (patch) | |
tree | ff389badec3079c494cd29e8645106887e486205 /cpp/src/sfntly | |
parent | a9e6f10c3af00cdad1a6331214ffe0138b2679d7 (diff) | |
download | sfntly-97207cee12e945fd45471488f555c76b17644dec.tar.gz |
Fix compiler warning
Clang warning:
'this' pointer cannot be null in well-defined C++ code; comparison may
be assumed to always evaluate to false [-Wtautological-undefined-compare]
Diffstat (limited to 'cpp/src/sfntly')
-rw-r--r-- | cpp/src/sfntly/table/bitmap/bitmap_glyph_info.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/sfntly/table/bitmap/bitmap_glyph_info.cc b/cpp/src/sfntly/table/bitmap/bitmap_glyph_info.cc index ab9953b..a299b3e 100644 --- a/cpp/src/sfntly/table/bitmap/bitmap_glyph_info.cc +++ b/cpp/src/sfntly/table/bitmap/bitmap_glyph_info.cc @@ -52,7 +52,7 @@ bool BitmapGlyphInfo::operator==(const BitmapGlyphInfo& rhs) const { bool BitmapGlyphInfo::operator==(BitmapGlyphInfo* rhs) { if (rhs == NULL) { - return this == NULL; + return false; // Well defined C++ code's this is always not null. } return (format_ == rhs->format() && glyph_id_ == rhs->glyph_id() && |