mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
linux/macos build bug fix
add const
This commit is contained in:
parent
f489cf6f30
commit
17655eef45
1 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue