diff options
| author | 2018-12-20 15:47:01 -0800 | |
|---|---|---|
| committer | 2019-01-10 19:53:01 +0000 | |
| commit | 45e31c739f6aaeec2c280eb098a44c69decebae2 (patch) | |
| tree | a51834a7661ad6b59477e3169639c78a403a14f4 /cmds/lshal/TextTable.h | |
| parent | a7fa269ddaf4ee156bbe4796f0e77541d1283f98 (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/TextTable.h')
| -rw-r--r-- | cmds/lshal/TextTable.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmds/lshal/TextTable.h b/cmds/lshal/TextTable.h index 91d522aef7..301b4bd969 100644 --- a/cmds/lshal/TextTable.h +++ b/cmds/lshal/TextTable.h @@ -33,11 +33,11 @@ public: TextTableRow() {} // A row of cells. - TextTableRow(std::vector<std::string>&& v) : mFields(std::move(v)) {} + explicit TextTableRow(std::vector<std::string>&& v) : mFields(std::move(v)) {} // A single comment string. - TextTableRow(std::string&& s) : mLine(std::move(s)) {} - TextTableRow(const std::string& s) : mLine(s) {} + explicit TextTableRow(std::string&& s) : mLine(std::move(s)) {} + explicit TextTableRow(const std::string& s) : mLine(s) {} // Whether this row is an actual row of cells. bool isRow() const { return !fields().empty(); } |