summaryrefslogtreecommitdiff
path: root/cmds/lshal/TextTable.cpp
diff options
context:
space:
mode:
author Yifan Hong <elsk@google.com> 2017-09-12 01:20:57 +0000
committer android-build-merger <android-build-merger@google.com> 2017-09-12 01:20:57 +0000
commit12d83eaf6a54e6e9fd23c5c1a729fb30d21a3fc2 (patch)
tree735016476802d5480e58173b5f8a5a6086a6089a /cmds/lshal/TextTable.cpp
parent76127e7eba786e1ee20f79227b973448757f781c (diff)
parent424b40487a6fb7fc7043bdd727622bf3e8cddaa0 (diff)
Merge changes from topic "lshal_pretty" am: 303322f06a am: e1111eb11d am: 655da33570
am: 424b40487a Change-Id: Ic64ba89bde54489955c1cd5a97ea8440c2edaef3
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