add various nodiscard

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2021-11-11 02:27:17 -08:00
parent a8c77a6fba
commit 5deca66fdc
6 changed files with 8 additions and 8 deletions

View File

@@ -91,7 +91,7 @@ public:
}
#endif
bool IsDefined() const noexcept {
[[nodiscard]] bool IsDefined() const noexcept {
return event.IsDefined();
}

View File

@@ -62,7 +62,7 @@ public:
#endif
}
auto &GetEventLoop() const noexcept {
[[nodiscard]] auto &GetEventLoop() const noexcept {
return event.GetEventLoop();
}