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:
fc95be1
)
Remove &glyph from SkASSERT.
author
dcheng
<dcheng@chromium.org>
Wed, 8 Jul 2015 02:35:53 +0000
(19:35 -0700)
committer
Commit 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
patch
|
blob
|
history
diff --git
a/src/ports/SkScalerContext_win_dw.cpp
b/src/ports/SkScalerContext_win_dw.cpp
index
de527c8
..
7bfa1d4
100644
(file)
--- 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();