summaryrefslogtreecommitdiff
path: root/cmds/lshal/TableEntry.h
diff options
context:
space:
mode:
author Chih-Hung Hsieh <chh@google.com> 2018-12-20 15:47:01 -0800
committer Chih-hung Hsieh <chh@google.com> 2019-01-10 19:53:01 +0000
commit45e31c739f6aaeec2c280eb098a44c69decebae2 (patch)
treea51834a7661ad6b59477e3169639c78a403a14f4 /cmds/lshal/TableEntry.h
parenta7fa269ddaf4ee156bbe4796f0e77541d1283f98 (diff)
Fix/suppress cmds/lshal google-explicit-constructor warnings
* Add explicit to conversion constructors/operators * Use NOLINT or NOLINTNEXTLINE to suppress warnings on intended converters Bug: 28341362 Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor Change-Id: I67a59b0051b5550ea135a91664bf03995e94eb75
Diffstat (limited to 'cmds/lshal/TableEntry.h')
-rw-r--r--cmds/lshal/TableEntry.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/lshal/TableEntry.h b/cmds/lshal/TableEntry.h
index 7294b0a134..601b7e25f9 100644
--- a/cmds/lshal/TableEntry.h
+++ b/cmds/lshal/TableEntry.h
@@ -149,7 +149,7 @@ using TableEntryCompare = std::function<bool(const TableEntry &, const TableEntr
class MergedTable {
public:
- MergedTable(std::vector<const Table*>&& tables) : mTables(std::move(tables)) {}
+ explicit MergedTable(std::vector<const Table*>&& tables) : mTables(std::move(tables)) {}
TextTable createTextTable();
private:
std::vector<const Table*> mTables;