summaryrefslogtreecommitdiff
path: root/cmds/lshal/TextTable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cmds/lshal/TextTable.cpp')
-rw-r--r--cmds/lshal/TextTable.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmds/lshal/TextTable.cpp b/cmds/lshal/TextTable.cpp
index a35917c1e6..eca9061034 100644
--- a/cmds/lshal/TextTable.cpp
+++ b/cmds/lshal/TextTable.cpp
@@ -53,5 +53,15 @@ void TextTable::dump(std::ostream& out) const {
}
}
+void TextTable::addAll(TextTable&& other) {
+ for (auto&& row : other.mTable) {
+ if (row.isRow()) {
+ computeWidth(row.fields());
+ }
+
+ mTable.emplace_back(std::move(row));
+ }
+}
+
} // namespace lshal
} // namespace android