From 37f13bdeb2f53e619426669ea57b39413888bb74 Mon Sep 17 00:00:00 2001 From: adbridge Date: Fri, 8 Jan 2021 17:15:13 +0000 Subject: [PATCH] Remove unecessary namespace qualified (Also minor whitespace correction) --- events/include/events/Event.h | 6 +++--- events/tests/TESTS/events/queue/main.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/events/include/events/Event.h b/events/include/events/Event.h index cf7b981c97..8598fafef8 100755 --- a/events/include/events/Event.h +++ b/events/include/events/Event.h @@ -70,7 +70,7 @@ public: _event->equeue = &q->_equeue; _event->id = 0; _event->delay = duration(0); - _event->period = events::non_periodic; + _event->period = non_periodic; _event->post = &Event::event_post; _event->dtor = &Event::event_dtor; @@ -154,11 +154,11 @@ public: _event->period = p; } else { - if (p != events::non_periodic) { + if (p != non_periodic) { MBED_WARNING(MBED_ERROR_INVALID_ARGUMENT, "Invalid period specified, defaulting to non_periodic."); } - _event->period = events::non_periodic; + _event->period = non_periodic; } } } diff --git a/events/tests/TESTS/events/queue/main.cpp b/events/tests/TESTS/events/queue/main.cpp index 67a62557ab..6c88823e47 100755 --- a/events/tests/TESTS/events/queue/main.cpp +++ b/events/tests/TESTS/events/queue/main.cpp @@ -518,7 +518,7 @@ void handler() void event_period_tests() { - // Test a non periodic event ie dispatched only once + // Test a non periodic event ie dispatched only once Event event1(&period_tests_queue, handler);