aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/core/SkShader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/core/SkShader.h b/include/core/SkShader.h
index 0ec892eedc..389be351b2 100644
--- a/include/core/SkShader.h
+++ b/include/core/SkShader.h
@@ -159,7 +159,7 @@ public:
*/
virtual void endContext();
- SkDEBUGCODE(bool setContextHasBeenCalled() const { return fInSetContext ? true : false; })
+ SkDEBUGCODE(bool setContextHasBeenCalled() const { return SkToBool(fInSetContext); })
/**
* Called for each span of the object being drawn. Your subclass should