Remove another assertion that a reference is non-null.
authordcheng <dcheng@chromium.org>
Wed, 8 Jul 2015 20:25:23 +0000 (13:25 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 8 Jul 2015 20:25:23 +0000 (13:25 -0700)
This tickles a warning in Clang:
reference cannot be bound to dereferenced null pointer in well-defined
C++ code; pointer may be assumed to always convert to true
[-Wundefined-bool-conversion]

BUG=none

Review URL: https://codereview.chromium.org/1225053003

src/ports/SkFontHost_win.cpp

index 7463dab..75e3d46 100755 (executable)
@@ -1623,7 +1623,7 @@ DWORD SkScalerContext_GDI::getGDIGlyphPath(const SkGlyph& glyph, UINT flags,
 }
 
 void SkScalerContext_GDI::generatePath(const SkGlyph& glyph, SkPath* path) {
-    SkASSERT(&glyph && path);
+    SkASSERT(path);
     SkASSERT(fDDC);
 
     path->reset();