13
0

Styleguide #12 avoid get_ for accessors

This commit is contained in:
Robin Gareus 2020-04-07 18:30:34 +02:00
parent 7ffaae77a7
commit d4d57c844f
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
3 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ KeyboardLayout::note_binding (int note) const
}
KeyboardLayout::Layout
KeyboardLayout::get_layout (std::string const& l)
KeyboardLayout::layout (std::string const& l)
{
if (l == "QWERTY") {
return QWERTY;

View File

@ -48,7 +48,7 @@ public:
int key_binding (const char* key) const;
const char* note_binding (int note) const;
static Layout get_layout (std::string const& l);
static Layout layout (std::string const& l);
static const char* get_keycode (GdkEventKey* event);
private:

View File

@ -365,7 +365,7 @@ VirtualKeyboardWindow::on_key_release_event (GdkEventKey* ev)
void
VirtualKeyboardWindow::select_keyboard_layout (std::string const& l)
{
_piano.set_keyboard_layout (KeyboardLayout::get_layout (l));
_piano.set_keyboard_layout (KeyboardLayout::layout (l));
_piano.grab_focus ();
}