From 4df7b9319b65580fbc3787ef13d6390e09d15881 Mon Sep 17 00:00:00 2001 From: GriffinR Date: Sun, 2 Mar 2025 18:33:50 -0500 Subject: [PATCH] Remove erroneous comment, add missing static --- src/core/events.cpp | 2 +- src/mainwindow.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/events.cpp b/src/core/events.cpp index eedf0d7f..9186e5c0 100644 --- a/src/core/events.cpp +++ b/src/core/events.cpp @@ -112,7 +112,7 @@ QList Event::types() { } QString Event::typeToString(Event::Type type) { - const QMap typeToStringMap = { + static const QMap typeToStringMap = { {Event::Type::Object, "Object"}, {Event::Type::CloneObject, "Clone Object"}, {Event::Type::Warp, "Warp"}, diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index c9f06b0e..d30fd12b 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2109,7 +2109,6 @@ void MainWindow::updateSelectedEvents() { ui->tabWidget_EventType->setCurrentWidget(ui->tab_Multiple); } - // (Currently 'events' can't be empty here, but we'll check anyway in case that changes) if (!events.isEmpty()) { // Set the 'New Event' button to be the type of the most recently-selected event ui->newEventToolButton->selectEventType(events.constLast()->getEventType());