From c3a27fadaedb3a46c0b61659d6c69c99a41b3135 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 12 Dec 2019 23:47:12 +0100 Subject: [PATCH] NO-OP: some const correctness --- gtk2_ardour/pianokeyboard.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/pianokeyboard.cc b/gtk2_ardour/pianokeyboard.cc index 6aef86ee26..9323f4fbf0 100644 --- a/gtk2_ardour/pianokeyboard.cc +++ b/gtk2_ardour/pianokeyboard.cc @@ -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;