summaryrefslogtreecommitdiff
path: root/tools/split-select/Rule.cpp
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2014-11-06 12:54:36 -0800
committerAdam Lesinski <adamlesinski@google.com>2014-11-06 14:57:34 -0800
commitdcdfe9fef4b07ee53d312c3fbecc74cb215ace6f (patch)
tree1e689ea612de5ab03f10144b4103fae511b564e8 /tools/split-select/Rule.cpp
parentd12b69518daabff3c13482f4b5140020b747b71f (diff)
split-select: Fix rules generated for anydpi density
Change-Id: I9de569ca9a76eb22df4d0e178df847ba1c7d0b01
Diffstat (limited to 'tools/split-select/Rule.cpp')
-rw-r--r--tools/split-select/Rule.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/split-select/Rule.cpp b/tools/split-select/Rule.cpp
index 9559fe2fea1b..48d21ff35c8d 100644
--- a/tools/split-select/Rule.cpp
+++ b/tools/split-select/Rule.cpp
@@ -29,6 +29,16 @@ inline static void indentStr(String8& str, int indent) {
}
}
+Rule::Rule(const Rule& rhs)
+ : RefBase()
+ , op(rhs.op)
+ , key(rhs.key)
+ , negate(rhs.negate)
+ , stringArgs(rhs.stringArgs)
+ , longArgs(rhs.longArgs)
+ , subrules(rhs.subrules) {
+}
+
String8 Rule::toJson(int indent) const {
String8 str;
indentStr(str, indent);