Remove &glyph from SkASSERT.
authordcheng <dcheng@chromium.org>
Wed, 8 Jul 2015 02:35:53 +0000 (19:35 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 8 Jul 2015 02:35:53 +0000 (19:35 -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/1220113003

src/ports/SkScalerContext_win_dw.cpp

index de527c8..7bfa1d4 100644 (file)
@@ -722,7 +722,7 @@ void SkScalerContext_DW::generateImage(const SkGlyph& glyph) {
 }
 
 void SkScalerContext_DW::generatePath(const SkGlyph& glyph, SkPath* path) {
-    SkASSERT(&glyph && path);
+    SkASSERT(path);
 
     path->reset();