File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed
features/frameworks/utest/utest Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -171,14 +171,13 @@ namespace v1 {
171
171
control_t (uint32_t timeout_ms) :
172
172
base_control_t (make_base_control_t (REPEAT_UNDECLR, timeout_ms)) {}
173
173
174
- control_t (base_control_t other) :
174
+ control_t (base_control_t other) :
175
175
base_control_t (other) {}
176
176
177
- control_t
178
- inline operator +(const control_t & rhs) const {
177
+ friend control_t operator +(const control_t & lhs, const control_t & rhs) {
179
178
control_t result (
180
- repeat_t (this -> repeat | rhs.repeat ),
181
- (rhs.timeout == TIMEOUT_NONE) ? rhs.timeout : this -> timeout );
179
+ repeat_t (lhs. repeat | rhs.repeat ),
180
+ (rhs.timeout == TIMEOUT_NONE) ? rhs.timeout : lhs. timeout );
182
181
183
182
if (result.timeout != TIMEOUT_NONE && result.timeout > rhs.timeout ) {
184
183
result.timeout = rhs.timeout ;
@@ -208,15 +207,23 @@ namespace v1 {
208
207
return timeout;
209
208
}
210
209
211
- private:
212
- static base_control_t make_base_control_t (repeat_t repeat, uint32_t timeout) {
210
+ operator base_control_t () const {
213
211
base_control_t result = {
214
212
repeat,
215
213
timeout
216
214
};
217
215
return result;
218
216
}
219
217
218
+ private:
219
+ static base_control_t make_base_control_t (repeat_t repeat, uint32_t timeout) {
220
+ base_control_t result = {
221
+ repeat,
222
+ timeout
223
+ };
224
+ return result;
225
+ }
226
+
220
227
friend class Harness ;
221
228
};
222
229
You can’t perform that action at this time.
0 commit comments