diff options
author | 2017-09-12 00:57:28 +0000 | |
---|---|---|
committer | 2017-09-12 00:57:28 +0000 | |
commit | e1111eb11df289f44be3ba452dd50433e1439fb5 (patch) | |
tree | 499ac770090d25d504d81229324fc7ed4cbda5f2 /cmds/lshal/TextTable.cpp | |
parent | 3e84f0fa0a935a9accd625b507a642a583fd5a7d (diff) | |
parent | 303322f06a8b32de83e83be605991e78e039b4b7 (diff) |
Merge changes from topic "lshal_pretty"
am: 303322f06a
Change-Id: Id11633ecd807d5318593fcd94173b11b0880475e
Diffstat (limited to 'cmds/lshal/TextTable.cpp')
-rw-r--r-- | cmds/lshal/TextTable.cpp | 10 |
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 |