Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Unified Diff: src/core/SkRecordPattern.h

Issue 1824983003: SkRecord: infer return type for visit() and mutate(). (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkRecordDraw.cpp ('k') | src/gpu/GrRecordReplaceDraw.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRecordPattern.h
diff --git a/src/core/SkRecordPattern.h b/src/core/SkRecordPattern.h
index 9493bbfaf73a46fef6704f3352d1dd9dfdebc540..45f45724c199596972772cf1b4f3df71ef212693 100644
--- a/src/core/SkRecordPattern.h
+++ b/src/core/SkRecordPattern.h
@@ -147,7 +147,7 @@ private:
template <typename T>
int matchFirst(T* first, SkRecord* record, int i) {
if (i < record->count()) {
- if (record->mutate<bool>(i, *first)) {
+ if (record->mutate(i, *first)) {
return i+1;
}
}
@@ -158,7 +158,7 @@ private:
template <typename T>
int matchFirst(Greedy<T>* first, SkRecord* record, int i) {
while (i < record->count()) {
- if (!record->mutate<bool>(i, *first)) {
+ if (!record->mutate(i, *first)) {
return i;
}
i++;
« no previous file with comments | « src/core/SkRecordDraw.cpp ('k') | src/gpu/GrRecordReplaceDraw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698