13
0

NO-OP: some const correctness

This commit is contained in:
Robin Gareus 2019-12-12 23:47:12 +01:00
parent f2170f0a2f
commit c3a27fadae
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -533,7 +533,7 @@ APianoKeyboard::bind_keys_basic_qwertz ()
bind_key ("apostrophe", 29);
}
static char*
static const char*
get_keycode (GdkEventKey* event)
{
/* We're not using event->keyval, because we need keyval with level set to 0.
@ -559,7 +559,7 @@ get_keycode (GdkEventKey* event)
bool
APianoKeyboard::on_key_press_event (GdkEventKey* event)
{
char* key = get_keycode (event);
char const* key = get_keycode (event);
int note = key_binding (key);
if (note < -1) {
@ -594,7 +594,7 @@ APianoKeyboard::on_key_press_event (GdkEventKey* event)
bool
APianoKeyboard::on_key_release_event (GdkEventKey* event)
{
char* key = get_keycode (event);
char const* key = get_keycode (event);
if (!key) {
return false;