summaryrefslogtreecommitdiff
path: root/tools/aapt2/ValueVisitor_test.cpp
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2017-09-28 13:34:35 -0700
committerAdam Lesinski <adamlesinski@google.com>2017-09-28 14:08:50 -0700
commitd3ffa844f5a07756009f019e13806e253d1bb119 (patch)
tree75ebb146979439d850dd97b9645bae231923c5ca /tools/aapt2/ValueVisitor_test.cpp
parent43ddc05bbdbf8da73da2415b3ab4d68a0180f9b2 (diff)
AAPT2: Cleanup Visitors for XML and Values
Test: make aapt2_tests Change-Id: Ib61f64c155a380115610edeaf2d65e60258a2426
Diffstat (limited to 'tools/aapt2/ValueVisitor_test.cpp')
-rw-r--r--tools/aapt2/ValueVisitor_test.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/aapt2/ValueVisitor_test.cpp b/tools/aapt2/ValueVisitor_test.cpp
index eb75b102e427..5aea77d67950 100644
--- a/tools/aapt2/ValueVisitor_test.cpp
+++ b/tools/aapt2/ValueVisitor_test.cpp
@@ -24,16 +24,16 @@
namespace aapt {
-struct SingleReferenceVisitor : public ValueVisitor {
- using ValueVisitor::Visit;
+struct SingleReferenceVisitor : public DescendingValueVisitor {
+ using DescendingValueVisitor::Visit;
Reference* visited = nullptr;
void Visit(Reference* ref) override { visited = ref; }
};
-struct StyleVisitor : public ValueVisitor {
- using ValueVisitor::Visit;
+struct StyleVisitor : public DescendingValueVisitor {
+ using DescendingValueVisitor::Visit;
std::list<Reference*> visited_refs;
Style* visited_style = nullptr;
@@ -42,7 +42,7 @@ struct StyleVisitor : public ValueVisitor {
void Visit(Style* style) override {
visited_style = style;
- ValueVisitor::Visit(style);
+ DescendingValueVisitor::Visit(style);
}
};