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

Unified Diff: tools/gn/unique_vector.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/tutorial/hello.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/unique_vector.h
diff --git a/tools/gn/unique_vector.h b/tools/gn/unique_vector.h
index 207b9f2e648a7c468f8697b3d5aaba621a6ac44c..b5bc65d03b17dc95f0b54492dc52a00240650360 100644
--- a/tools/gn/unique_vector.h
+++ b/tools/gn/unique_vector.h
@@ -33,7 +33,7 @@ class UniquifyRef {
}
// Initialize with a pointer to a value.
- UniquifyRef(const T* v)
+ explicit UniquifyRef(const T* v)
: value_(v),
vect_(nullptr),
index_(static_cast<size_t>(-1)) {
« no previous file with comments | « tools/gn/tutorial/hello.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698