Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1102)

Unified Diff: tools/gn/pattern.h

Issue 964203002: tools/gn: Fix errors found by Facebook's flint tool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix chromium-style plugin errors Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/parse_tree.h ('k') | tools/gn/scope.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/pattern.h
diff --git a/tools/gn/pattern.h b/tools/gn/pattern.h
index f5f432cc09a1a7cbdc6eaeffaff5bd7bc0500fc9..39895bfa9ba94908d57616ed2b576fb64e1865cf 100644
--- a/tools/gn/pattern.h
+++ b/tools/gn/pattern.h
@@ -19,7 +19,7 @@ class Pattern {
PATH_BOUNDARY // '/' or beginning of string.
};
- Subrange(Type t, const std::string& l = std::string())
+ explicit Subrange(Type t, const std::string& l = std::string())
: type(t),
literal(l) {
}
@@ -44,7 +44,7 @@ class Pattern {
std::string literal;
};
- Pattern(const std::string& s);
+ explicit Pattern(const std::string& s);
~Pattern();
// Returns true if the current pattern matches the given string.
« no previous file with comments | « tools/gn/parse_tree.h ('k') | tools/gn/scope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698