mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
SCRIPT: wpiformat
This commit is contained in:
committed by
Peter Johnson
parent
ae6bdc9d25
commit
2109161534
@@ -25,7 +25,7 @@ EventLoop::EventLoop() {}
|
||||
void EventLoop::Bind(wpi::util::unique_function<void()> action) {
|
||||
if (m_running) {
|
||||
throw WPILIB_MakeError(err::Error,
|
||||
"Cannot bind EventLoop while it is running");
|
||||
"Cannot bind EventLoop while it is running");
|
||||
}
|
||||
m_bindings.emplace_back(std::move(action));
|
||||
}
|
||||
@@ -40,7 +40,7 @@ void EventLoop::Poll() {
|
||||
void EventLoop::Clear() {
|
||||
if (m_running) {
|
||||
throw WPILIB_MakeError(err::Error,
|
||||
"Cannot clear EventLoop while it is running");
|
||||
"Cannot clear EventLoop while it is running");
|
||||
}
|
||||
m_bindings.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user