Index: tests/RecordTestUtils.h |
diff --git a/tests/RecordTestUtils.h b/tests/RecordTestUtils.h |
index a281566652f3b97722158fb5edf5f784101984db..853ee219080ca93a0a95d1b384ca83c7102b64a7 100644 |
--- a/tests/RecordTestUtils.h |
+++ b/tests/RecordTestUtils.h |
@@ -30,7 +30,7 @@ struct ReadAs { |
template <typename T> |
static const T* assert_type(skiatest::Reporter* r, const SkRecord& record, int index) { |
ReadAs<T> reader; |
- record.visit<void>(index, reader); |
+ record.visit(index, reader); |
REPORTER_ASSERT(r, T::kType == reader.type); |
REPORTER_ASSERT(r, SkToBool(reader.ptr)); |
return reader.ptr; |
@@ -45,7 +45,7 @@ template <typename DrawT> int count_instances_of_type(const SkRecord& record) { |
MatchType<DrawT> matcher; |
int counter = 0; |
for (int i = 0; i < record.count(); i++) { |
- counter += record.visit<int>(i, matcher); |
+ counter += record.visit(i, matcher); |
} |
return counter; |
} |
@@ -53,7 +53,7 @@ template <typename DrawT> int count_instances_of_type(const SkRecord& record) { |
template <typename DrawT> int find_first_instances_of_type(const SkRecord& record) { |
MatchType<DrawT> matcher; |
for (int i = 0; i < record.count(); i++) { |
- if (record.visit<int>(i, matcher)) { |
+ if (record.visit(i, matcher)) { |
return i; |
} |
} |