aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPath.h
diff options
context:
space:
mode:
authorGravatar jcgregorio <jcgregorio@google.com>2016-07-26 14:10:17 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-26 14:10:17 -0700
commitaef94d1818182eb76b6ff0fd0c5260ceda8ea0b7 (patch)
tree51e5f60ea166dfd24aa4c1193298d11b2f685c09 /include/core/SkPath.h
parent1211e0ca74fc4b58dd314c87e94692b4d61be9b7 (diff)
Avoid warnings on GCC 4.8.4
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2183243002 [mtklein adds...] TBR=reed@google.com No public API changes. Review-Url: https://codereview.chromium.org/2183243002
Diffstat (limited to 'include/core/SkPath.h')
-rw-r--r--include/core/SkPath.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/core/SkPath.h b/include/core/SkPath.h
index 4d99fdd0eb..d1af4f31b6 100644
--- a/include/core/SkPath.h
+++ b/include/core/SkPath.h
@@ -183,7 +183,7 @@ public:
*/
bool isOval(SkRect* rect, Direction* dir = nullptr,
unsigned* start = nullptr) const {
- bool isCCW;
+ bool isCCW = false;
bool result = fPathRef->isOval(rect, &isCCW, start);
if (dir && result) {
*dir = isCCW ? kCCW_Direction : kCW_Direction;
@@ -205,7 +205,7 @@ public:
*/
bool isRRect(SkRRect* rrect, Direction* dir = nullptr,
unsigned* start = nullptr) const {
- bool isCCW;
+ bool isCCW = false;
bool result = fPathRef->isRRect(rrect, &isCCW, start);
if (dir && result) {
*dir = isCCW ? kCCW_Direction : kCW_Direction;