summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarthurhsu@google.com <arthurhsu@google.com@672e30a5-4c29-85ac-ac6d-611c735e0a51>2014-06-09 21:12:10 +0000
committerarthurhsu@google.com <arthurhsu@google.com@672e30a5-4c29-85ac-ac6d-611c735e0a51>2014-06-09 21:12:10 +0000
commit1bdaae8fc788a5ac8936d68bf24f37d977a13dac (patch)
treea14562a0ce4aecbdab44c9403437b8ac6039964e
parentf7f392d54b6d5775b089cec2e35304fb0864ef34 (diff)
downloadsrc-1bdaae8fc788a5ac8936d68bf24f37d977a13dac.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] git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@239 672e30a5-4c29-85ac-ac6d-611c735e0a51
-rw-r--r--sfntly/table/bitmap/bitmap_glyph_info.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfntly/table/bitmap/bitmap_glyph_info.cc b/sfntly/table/bitmap/bitmap_glyph_info.cc
index ab9953b..a299b3e 100644
--- a/sfntly/table/bitmap/bitmap_glyph_info.cc
+++ b/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() &&