@@ -45,6 +45,7 @@ class scoped_nsprotocol {
4545 scoped_nsprotocol (const scoped_nsprotocol<NST>& that) : object_ ([that.object_ retain ]) {}
4646
4747 template <typename NSU>
48+ // NOLINTNEXTLINE(google-explicit-constructor)
4849 scoped_nsprotocol (const scoped_nsprotocol<NSU>& that) : object_ ([that.get () retain ]) {}
4950
5051 ~scoped_nsprotocol () { [object_ release ]; }
@@ -66,7 +67,7 @@ class scoped_nsprotocol {
6667 bool operator==(NST that) const { return object_ == that; }
6768 bool operator!=(NST that) const { return object_ != that; }
6869
69- operator NST () const { return object_; }
70+ operator NST () const { return object_; } // NOLINT(google-explicit-constructor)
7071
7172 NST get () const { return object_; }
7273
@@ -116,6 +117,7 @@ class scoped_nsobject : public scoped_nsprotocol<NST*> {
116117 scoped_nsobject (const scoped_nsobject<NST>& that) : scoped_nsprotocol<NST*>(that) {}
117118
118119 template <typename NSU>
120+ // NOLINTNEXTLINE(google-explicit-constructor)
119121 scoped_nsobject (const scoped_nsobject<NSU>& that) : scoped_nsprotocol<NST*>(that) {}
120122
121123 scoped_nsobject& operator=(const scoped_nsobject<NST>& that) {
@@ -133,6 +135,7 @@ class scoped_nsobject<id> : public scoped_nsprotocol<id> {
133135 scoped_nsobject (const scoped_nsobject<id >& that) : scoped_nsprotocol<id >(that) {}
134136
135137 template <typename NSU>
138+ // NOLINTNEXTLINE(google-explicit-constructor)
136139 scoped_nsobject (const scoped_nsobject<NSU>& that) : scoped_nsprotocol<id >(that) {}
137140
138141 scoped_nsobject& operator=(const scoped_nsobject<id >& that) {
0 commit comments