From 45e31c739f6aaeec2c280eb098a44c69decebae2 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Thu, 20 Dec 2018 15:47:01 -0800 Subject: 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 --- cmds/lshal/TableEntry.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmds/lshal/TableEntry.h') 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&& tables) : mTables(std::move(tables)) {} + explicit MergedTable(std::vector&& tables) : mTables(std::move(tables)) {} TextTable createTextTable(); private: std::vector mTables; -- cgit v1.2.3-59-g8ed1b