| 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) {
|
|
|