Convert case_control to a POD.

pull/2559/head
Vincent Coubard 2016-08-26 14:22:42 +01:00
parent 7a6edda44c
commit 4bf28d474c
2 changed files with 1 additions and 9 deletions

View File

@ -36,7 +36,7 @@ namespace
const Case *case_current = NULL;
size_t case_index = 0;
control_t case_control = control_t(REPEAT_SETUP_TEARDOWN);
base_control_t case_control = { REPEAT_SETUP_TEARDOWN, TIMEOUT_UNDECLR };
size_t case_repeat_count = 1;
void *case_timeout_handle = NULL;

View File

@ -207,14 +207,6 @@ namespace v1 {
return timeout;
}
operator base_control_t() const {
base_control_t result = {
repeat,
timeout
};
return result;
}
private:
static base_control_t make_base_control_t(repeat_t repeat, uint32_t timeout) {
base_control_t result = {