aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pathops/SkIntersections.h
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2014-08-25 06:53:04 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-08-25 06:53:04 -0700
commit2e40381060794745562c4a26896970406114b07a (patch)
tree00b3ddca672fa16e35eee88e67157ce266dfc4b6 /src/pathops/SkIntersections.h
parent3053dfaefd12abd220d961e7e4c661e6eb8ba90e (diff)
add const to arrays of member functions
running 'size ./out/Release/libskia_core.a' revealed a couple of places where path ops chose poorly and declared arrays of member functions to be unnecessarily writable. R=reed@android.com TBR=reed Author: caryclark@google.com Review URL: https://codereview.chromium.org/461363003
Diffstat (limited to 'src/pathops/SkIntersections.h')
-rw-r--r--src/pathops/SkIntersections.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pathops/SkIntersections.h b/src/pathops/SkIntersections.h
index 0186b3797d..040671093c 100644
--- a/src/pathops/SkIntersections.h
+++ b/src/pathops/SkIntersections.h
@@ -287,8 +287,8 @@ private:
#endif
};
-extern int (SkIntersections::*CurveRay[])(const SkPoint[], const SkDLine& );
-extern int (SkIntersections::*CurveVertical[])(const SkPoint[], SkScalar top, SkScalar bottom,
+extern int (SkIntersections::* const CurveRay[])(const SkPoint[], const SkDLine& );
+extern int (SkIntersections::* const CurveVertical[])(const SkPoint[], SkScalar top, SkScalar bottom,
SkScalar x, bool flipped);
#endif