From 17655eef45e4e7af2ae2598cd325f42874a14a57 Mon Sep 17 00:00:00 2001 From: ChancellorIkseew Date: Thu, 31 Oct 2024 22:11:56 +1000 Subject: [PATCH] linux/macos build bug fix add const --- src/window/Events.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/window/Events.cpp b/src/window/Events.cpp index dad96be8..bc9a5920 100644 --- a/src/window/Events.cpp +++ b/src/window/Events.cpp @@ -106,7 +106,7 @@ void Events::pollEvents() { } Binding& Events::getBinding(const std::string& name) { - auto found = bindings.find(name); + const auto found = bindings.find(name); if (found == bindings.end()) { throw std::runtime_error("binding '" + name + "' does not exists"); } @@ -126,7 +126,7 @@ void Events::bind(const std::string& name, inputtype type, int code) { } void Events::rebind(const std::string& name, inputtype type, int code) { - auto& found = bindings.find(name); + const auto& found = bindings.find(name); if (found == bindings.end()) { throw std::runtime_error("binding '" + name + "' does not exists"); }