diff options
| author | 2017-09-12 01:19:23 +0000 | |
|---|---|---|
| committer | 2017-09-12 01:19:23 +0000 | |
| commit | 424b40487a6fb7fc7043bdd727622bf3e8cddaa0 (patch) | |
| tree | d08d55bd794e71795bf62819f335c63fe5fe8e07 /cmds/lshal/TextTable.cpp | |
| parent | bbeafe541eb6fda16992d6bc8f14422224353cd2 (diff) | |
| parent | 655da335700eda383b2f99c8a90c72a4dc1e0a9d (diff) | |
Merge changes from topic "lshal_pretty" am: 303322f06a am: e1111eb11d
am: 655da33570
Change-Id: I11a78b12e3b20dadb48dc0703e8ac26ba1074867
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 |