Styleguide #12 avoid get_ for accessors
This commit is contained in:
parent
7ffaae77a7
commit
d4d57c844f
|
@ -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;
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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 ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user