Fix warning: field 'XXX' will be initialized after field 'YYY'

According to the definition order in the .h file.
This commit is contained in:
Dmytro Maslenko
2025-07-21 19:26:25 -07:00
committed by Alejandro Martinez
parent fee8f1757c
commit 4aa2a32ec6
2 changed files with 2 additions and 2 deletions

View File

@@ -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"));

View File

@@ -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));