From a880f2ae0460422ed0edc7095ffa209e2d8d9f59 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 4 May 2016 08:25:20 +0200 Subject: api: fix accidental removal of constness --- opentrack/shortcuts.cpp | 2 +- opentrack/shortcuts.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'opentrack') diff --git a/opentrack/shortcuts.cpp b/opentrack/shortcuts.cpp index 3773179f..ca069b2a 100644 --- a/opentrack/shortcuts.cpp +++ b/opentrack/shortcuts.cpp @@ -85,7 +85,7 @@ void Shortcuts::receiver(const Key& k) } #endif -void Shortcuts::reload(std::vector> &keys_) +void Shortcuts::reload(const std::vector> &keys_) { const int sz = keys_.size(); keys = std::vector(); diff --git a/opentrack/shortcuts.h b/opentrack/shortcuts.h index fd732f89..b4a6f586 100644 --- a/opentrack/shortcuts.h +++ b/opentrack/shortcuts.h @@ -59,7 +59,7 @@ public: #endif {} - void reload(std::vector> &keys_); + void reload(const std::vector> &keys_); private: void bind_keyboard_shortcut(K &key, const key_opts& k, bool held); #ifdef _WIN32 -- cgit v1.2.3