projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f3ad29
)
Remove another assertion that a reference is non-null.
author
dcheng
<dcheng@chromium.org>
Wed, 8 Jul 2015 20:25:23 +0000
(13:25 -0700)
committer
Commit 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
patch
|
blob
|
history
diff --git
a/src/ports/SkFontHost_win.cpp
b/src/ports/SkFontHost_win.cpp
index
7463dab
..
75e3d46
100755
(executable)
--- a/
src/ports/SkFontHost_win.cpp
+++ b/
src/ports/SkFontHost_win.cpp
@@
-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();