Tidying/consistency in lambda definitions

This commit is contained in:
Nav
2021-10-03 02:03:54 +01:00
parent df6b94b0de
commit 508acf1c56
5 changed files with 8 additions and 8 deletions

View File

@@ -143,7 +143,7 @@ namespace Bloom
void registerCallbackForEventType(std::function<void(const EventType&)> callback) {
// We encapsulate the callback in a lambda to handle the downcasting.
std::function<void(const Events::Event&)> parentCallback =
[callback] (const Events::Event& event) {
[callback](const Events::Event& event) {
// Downcast the event to the expected type
callback(dynamic_cast<const EventType&>(event));
}