From 4aa2a32ec6621e2b6e875ad8aa4bebe15312eca5 Mon Sep 17 00:00:00 2001 From: Dmytro Maslenko Date: Mon, 21 Jul 2025 19:26:25 -0700 Subject: [PATCH] Fix warning: field 'XXX' will be initialized after field 'YYY' According to the definition order in the .h file. --- src/Charts/Overview.cpp | 2 +- src/Train/VideoWindow.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Charts/Overview.cpp b/src/Charts/Overview.cpp index c43c6ec23..2b942670e 100644 --- a/src/Charts/Overview.cpp +++ b/src/Charts/Overview.cpp @@ -570,7 +570,7 @@ badconfig: // // Config dialog that pops up when you click on the config button // -OverviewConfigDialog::OverviewConfigDialog(ChartSpaceItem*item, QPoint pos) : QDialog(NULL), item(item), pos(pos) +OverviewConfigDialog::OverviewConfigDialog(ChartSpaceItem*item, QPoint pos) : QDialog(NULL), pos(pos), item(item) { if (item->type == OverviewItemType::USERCHART) setWindowTitle(tr("Chart Settings")); else setWindowTitle(tr("Tile Settings")); diff --git a/src/Train/VideoWindow.cpp b/src/Train/VideoWindow.cpp index 7bba0cb86..a03bfa118 100644 --- a/src/Train/VideoWindow.cpp +++ b/src/Train/VideoWindow.cpp @@ -41,7 +41,7 @@ public: }; VideoWindow::VideoWindow(Context *context) : - GcChartWindow(context), context(context), m_MediaChanged(false), layoutSelector(NULL), container(nullptr) + GcChartWindow(context), context(context), m_MediaChanged(false), container(nullptr), layoutSelector(NULL) { HelpWhatsThis *helpContents = new HelpWhatsThis(this); this->setWhatsThis(helpContents->getWhatsThisText(HelpWhatsThis::ChartTrain_VideoPlayer));