@@ -45,6 +45,7 @@ class scoped_nsprotocol {
45
45
scoped_nsprotocol (const scoped_nsprotocol<NST>& that) : object_ ([that.object_ retain ]) {}
46
46
47
47
template <typename NSU>
48
+ // NOLINTNEXTLINE(google-explicit-constructor)
48
49
scoped_nsprotocol (const scoped_nsprotocol<NSU>& that) : object_ ([that.get () retain ]) {}
49
50
50
51
~scoped_nsprotocol () { [object_ release ]; }
@@ -66,7 +67,7 @@ class scoped_nsprotocol {
66
67
bool operator==(NST that) const { return object_ == that; }
67
68
bool operator!=(NST that) const { return object_ != that; }
68
69
69
- operator NST () const { return object_; }
70
+ operator NST () const { return object_; } // NOLINT(google-explicit-constructor)
70
71
71
72
NST get () const { return object_; }
72
73
@@ -116,6 +117,7 @@ class scoped_nsobject : public scoped_nsprotocol<NST*> {
116
117
scoped_nsobject (const scoped_nsobject<NST>& that) : scoped_nsprotocol<NST*>(that) {}
117
118
118
119
template <typename NSU>
120
+ // NOLINTNEXTLINE(google-explicit-constructor)
119
121
scoped_nsobject (const scoped_nsobject<NSU>& that) : scoped_nsprotocol<NST*>(that) {}
120
122
121
123
scoped_nsobject& operator=(const scoped_nsobject<NST>& that) {
@@ -133,6 +135,7 @@ class scoped_nsobject<id> : public scoped_nsprotocol<id> {
133
135
scoped_nsobject (const scoped_nsobject<id >& that) : scoped_nsprotocol<id >(that) {}
134
136
135
137
template <typename NSU>
138
+ // NOLINTNEXTLINE(google-explicit-constructor)
136
139
scoped_nsobject (const scoped_nsobject<NSU>& that) : scoped_nsprotocol<id >(that) {}
137
140
138
141
scoped_nsobject& operator=(const scoped_nsobject<id >& that) {
0 commit comments