summaryrefslogtreecommitdiff
path: root/Userland/Applications/Piano/RollWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applications/Piano/RollWidget.cpp')
-rw-r--r--Userland/Applications/Piano/RollWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/Piano/RollWidget.cpp b/Userland/Applications/Piano/RollWidget.cpp
index 16a20d8cab..3756acaf4a 100644
--- a/Userland/Applications/Piano/RollWidget.cpp
+++ b/Userland/Applications/Piano/RollWidget.cpp
@@ -152,7 +152,7 @@ void RollWidget::paint_event(GUI::PaintEvent& event)
}
Gfx::IntRect note_name_rect(3, y, 1, note_height);
- char const* note_name = note_names[note % notes_per_octave];
+ auto note_name = note_names[note % notes_per_octave];
painter.draw_text(note_name_rect, note_name, Gfx::TextAlignment::CenterLeft);
note_name_rect.translate_by(Gfx::FontDatabase::default_font().width(note_name) + 2, 0);