From: dcheng Date: Wed, 8 Jul 2015 02:35:53 +0000 (-0700) Subject: Remove &glyph from SkASSERT. X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~1824 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2f19b551ac10b96a1a35a147063cd4300d6fe07a;p=platform%2Fupstream%2FlibSkiaSharp.git Remove &glyph from SkASSERT. 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 --- diff --git a/src/ports/SkScalerContext_win_dw.cpp b/src/ports/SkScalerContext_win_dw.cpp index de527c8..7bfa1d4 100644 --- a/src/ports/SkScalerContext_win_dw.cpp +++ b/src/ports/SkScalerContext_win_dw.cpp @@ -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();