From b8fdb19bde2c9d26fac3fc08dad18532ba3181f4 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 26 Dec 2018 22:44:26 -0600 Subject: HorizonWizard: some syntax fixes --- horizonwizard.cc | 4 ++-- horizonwizard.hh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/horizonwizard.cc b/horizonwizard.cc index f0dcdf9..5e8845f 100644 --- a/horizonwizard.cc +++ b/horizonwizard.cc @@ -19,7 +19,7 @@ using Horizon::NetworkInterface; using std::map; using std::string; -map help_id_map = { +static map help_id_map = { {HorizonWizard::Page_Welcome, "welcome"}, {HorizonWizard::Page_Networking, "network-start"}, {HorizonWizard::Page_Network_SimpleWireless, "network-wifi"}, @@ -50,7 +50,7 @@ HorizonWizard::HorizonWizard(QWidget *parent) : QWizard(parent) setPage(Page_Network_SimpleWireless, new NetworkSimpleWirelessPage); setPage(Page_Software, new SoftwarePage); - QObject::connect(this, (void (QWizard:: *)(void))&QWizard::helpRequested, + QObject::connect(this, static_cast(&QWizard::helpRequested), [=](void) { if(help_id_map.find(currentId()) == help_id_map.end()) { diff --git a/horizonwizard.hh b/horizonwizard.hh index 403da0e..03d6421 100644 --- a/horizonwizard.hh +++ b/horizonwizard.hh @@ -26,7 +26,7 @@ public: Page_CustomStart /* custom pages have IDs starting here */ }; - HorizonWizard(QWidget *parent = 0); + HorizonWizard(QWidget *parent = nullptr); std::set selected; std::vector interfaces; }; -- cgit v1.2.3-70-g09d2