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::Layout
|
||||||
KeyboardLayout::get_layout (std::string const& l)
|
KeyboardLayout::layout (std::string const& l)
|
||||||
{
|
{
|
||||||
if (l == "QWERTY") {
|
if (l == "QWERTY") {
|
||||||
return QWERTY;
|
return QWERTY;
|
||||||
|
|
|
@ -48,7 +48,7 @@ public:
|
||||||
int key_binding (const char* key) const;
|
int key_binding (const char* key) const;
|
||||||
const char* note_binding (int note) 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);
|
static const char* get_keycode (GdkEventKey* event);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -365,7 +365,7 @@ VirtualKeyboardWindow::on_key_release_event (GdkEventKey* ev)
|
||||||
void
|
void
|
||||||
VirtualKeyboardWindow::select_keyboard_layout (std::string const& l)
|
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 ();
|
_piano.grab_focus ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user