diff options
author | 2013-07-02 14:44:27 +0000 | |
---|---|---|
committer | 2013-07-02 14:44:27 +0000 | |
commit | a3e500cee9fb1750bfd4a05901636d6fcbda597c (patch) | |
tree | 46d29e4ff8afcc15eb41e0158334975b97614787 | |
parent | c3eb56db6b88255be79d2daa210da1a6aba64051 (diff) |
use else instead of else-if -- fixes 'possibly unused' warning
BUG=
R=bsalomon@google.com
Review URL: https://codereview.chromium.org/18527003
git-svn-id: http://skia.googlecode.com/svn/trunk@9863 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | src/pathops/SkDQuadIntersection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pathops/SkDQuadIntersection.cpp b/src/pathops/SkDQuadIntersection.cpp index 8b222f725d..54c8b4979b 100644 --- a/src/pathops/SkDQuadIntersection.cpp +++ b/src/pathops/SkDQuadIntersection.cpp @@ -175,7 +175,8 @@ static bool is_linear_inner(const SkDQuad& q1, double t1s, double t1e, const SkD double tMin, tMax; if (tCount == 1) { tMin = tMax = tsFound[0]; - } else if (tCount > 1) { + } else { + SkASSERT(tCount > 1); SkTQSort<double>(tsFound.begin(), tsFound.end() - 1); tMin = tsFound[0]; tMax = tsFound[tsFound.count() - 1]; |