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

Unified Diff: tools/gn/label_ptr.h

Issue 56433003: GN threading refactor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/item_tree.cc ('k') | tools/gn/loader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/label_ptr.h
diff --git a/tools/gn/label_ptr.h b/tools/gn/label_ptr.h
index 9bc3df22eb7780422a898f881e926adbc2479be6..9cff9d9e5bbccc16d286f42d93424195f8eae1d7 100644
--- a/tools/gn/label_ptr.h
+++ b/tools/gn/label_ptr.h
@@ -20,6 +20,9 @@ struct LabelPtrPair {
LabelPtrPair() : label(), ptr(NULL), origin(NULL) {}
+ explicit LabelPtrPair(const Label& l) : label(l), ptr(NULL), origin(NULL) {
+ }
+
// This contructor is typically used in unit tests, it extracts the label
// automatically from a given pointer.
explicit LabelPtrPair(const T* p) : label(p->label()), ptr(p), origin(NULL) {
« no previous file with comments | « tools/gn/item_tree.cc ('k') | tools/gn/loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698