summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2016-07-12 13:50:44 -0700
committerChih-Hung Hsieh <chh@google.com>2016-07-26 11:26:01 -0700
commit034c475931e8e4da54b499c0056121490f029865 (patch)
treed07eac290b1d3744cd60ebe76486e0c2c937ea3d /init
parent02ccdc5db9bb39488a3fe22a907b3211c3a464b9 (diff)
downloadcore-034c475931e8e4da54b499c0056121490f029865.tar.gz
core-034c475931e8e4da54b499c0056121490f029865.tar.bz2
core-034c475931e8e4da54b499c0056121490f029865.zip
Fix google-explicit-constructor warnings in system/core.
* Declare explicit conversion constructors. * Add NOLINT for implicit conversion constructors. * Fix also some misaligned indendations. Bug: 28341362 Change-Id: Idf911f35923b408d92285cc1a053f382ba08c63e Test: build with clang-tidy
Diffstat (limited to 'init')
-rw-r--r--init/action.h2
-rw-r--r--init/parser/tokenizer.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/init/action.h b/init/action.h
index 6dee2d0a5..0bae9f0ef 100644
--- a/init/action.h
+++ b/init/action.h
@@ -44,7 +44,7 @@ private:
class Action {
public:
- Action(bool oneshot = false);
+ explicit Action(bool oneshot = false);
bool AddCommand(const std::vector<std::string>& args,
const std::string& filename, int line, std::string* err);
diff --git a/init/parser/tokenizer.h b/init/parser/tokenizer.h
index 8312a08e7..ade8f7389 100644
--- a/init/parser/tokenizer.h
+++ b/init/parser/tokenizer.h
@@ -36,7 +36,7 @@ namespace init {
// a TOK_NEWLINE will not be generated for that line.
class Tokenizer {
public:
- Tokenizer(const std::string& data);
+ explicit Tokenizer(const std::string& data);
~Tokenizer();
enum TokenType { TOK_START, TOK_END, TOK_NEWLINE, TOK_TEXT };