Skip to content

Commit 37f13bd

Browse files
committed
Remove unecessary namespace qualified
(Also minor whitespace correction)
1 parent f2b8686 commit 37f13bd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

events/include/events/Event.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class Event<void(ArgTs...)> {
7070
_event->equeue = &q->_equeue;
7171
_event->id = 0;
7272
_event->delay = duration(0);
73-
_event->period = events::non_periodic;
73+
_event->period = non_periodic;
7474

7575
_event->post = &Event::event_post<F>;
7676
_event->dtor = &Event::event_dtor<F>;
@@ -154,11 +154,11 @@ class Event<void(ArgTs...)> {
154154
_event->period = p;
155155
}
156156
else {
157-
if (p != events::non_periodic) {
157+
if (p != non_periodic) {
158158
MBED_WARNING(MBED_ERROR_INVALID_ARGUMENT,
159159
"Invalid period specified, defaulting to non_periodic.");
160160
}
161-
_event->period = events::non_periodic;
161+
_event->period = non_periodic;
162162
}
163163
}
164164
}

events/tests/TESTS/events/queue/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ void handler()
518518

519519
void event_period_tests()
520520
{
521-
// Test a non periodic event ie dispatched only once
521+
// Test a non periodic event ie dispatched only once
522522

523523
Event<void()> event1(&period_tests_queue, handler);
524524

0 commit comments

Comments
 (0)