From 4c76d4601dcb41a7b00eaf159b6ab43fd39603a6 Mon Sep 17 00:00:00 2001 From: Mark Ross <6730333+krazkidd@users.noreply.github.com> Date: Sun, 11 Aug 2024 18:14:40 -0700 Subject: [PATCH] Move empty constructors to header file. --- include/ui/ExchangeAnnouncementsDialog.hpp | 3 ++- include/ui/ExchangeScheduleDialog.hpp | 3 ++- include/ui/ExchangeStatusDialog.hpp | 3 ++- include/ui/LoginDialog.hpp | 3 ++- include/ui/PortfolioPanel.hpp | 3 ++- src/ui/ExchangeAnnouncementsDialog.cpp | 9 --------- src/ui/ExchangeScheduleDialog.cpp | 9 --------- src/ui/ExchangeStatusDialog.cpp | 9 --------- src/ui/LoginDialog.cpp | 11 ----------- src/ui/PortfolioPanel.cpp | 11 ----------- 10 files changed, 10 insertions(+), 54 deletions(-) diff --git a/include/ui/ExchangeAnnouncementsDialog.hpp b/include/ui/ExchangeAnnouncementsDialog.hpp index 77fe5da..529eb6a 100644 --- a/include/ui/ExchangeAnnouncementsDialog.hpp +++ b/include/ui/ExchangeAnnouncementsDialog.hpp @@ -12,7 +12,8 @@ namespace kdeck class ExchangeAnnouncementsDialog : public wxfb::ExchangeAnnouncementsDialog { public: - ExchangeAnnouncementsDialog(wxWindow* parent, wxWindowID winid = wxID_ANY); + ExchangeAnnouncementsDialog(wxWindow* parent, wxWindowID winid = wxID_ANY) + : wxfb::ExchangeAnnouncementsDialog(parent, winid) {}; void UpdateStuff(Api* api); }; diff --git a/include/ui/ExchangeScheduleDialog.hpp b/include/ui/ExchangeScheduleDialog.hpp index 617537e..1e2f4db 100644 --- a/include/ui/ExchangeScheduleDialog.hpp +++ b/include/ui/ExchangeScheduleDialog.hpp @@ -12,7 +12,8 @@ namespace kdeck class ExchangeScheduleDialog : public wxfb::ExchangeScheduleDialog { public: - ExchangeScheduleDialog(wxWindow* parent, wxWindowID winid = wxID_ANY); + ExchangeScheduleDialog(wxWindow* parent, wxWindowID winid = wxID_ANY) + : wxfb::ExchangeScheduleDialog(parent, winid) {}; void UpdateStuff(Api* api); }; diff --git a/include/ui/ExchangeStatusDialog.hpp b/include/ui/ExchangeStatusDialog.hpp index bb0c769..36edb82 100644 --- a/include/ui/ExchangeStatusDialog.hpp +++ b/include/ui/ExchangeStatusDialog.hpp @@ -12,7 +12,8 @@ namespace kdeck class ExchangeStatusDialog : public wxfb::ExchangeStatusDialog { public: - ExchangeStatusDialog(wxWindow* parent, wxWindowID winid = wxID_ANY); + ExchangeStatusDialog(wxWindow* parent, wxWindowID winid = wxID_ANY) + : wxfb::ExchangeStatusDialog(parent, winid) {}; void UpdateStuff(Api* api); }; diff --git a/include/ui/LoginDialog.hpp b/include/ui/LoginDialog.hpp index f6bb717..937db26 100644 --- a/include/ui/LoginDialog.hpp +++ b/include/ui/LoginDialog.hpp @@ -12,7 +12,8 @@ namespace kdeck class LoginDialog : public wxfb::LoginDialog { public: - LoginDialog(wxWindow* parent, wxWindowID winid = wxID_ANY); + LoginDialog(wxWindow* parent, wxWindowID winid = wxID_ANY) + : wxfb::LoginDialog(parent, winid) {}; void UpdateStuff(const Config* config); diff --git a/include/ui/PortfolioPanel.hpp b/include/ui/PortfolioPanel.hpp index ff2d79c..5c3a68e 100644 --- a/include/ui/PortfolioPanel.hpp +++ b/include/ui/PortfolioPanel.hpp @@ -13,7 +13,8 @@ namespace kdeck class PortfolioPanel : public wxfb::PortfolioPanel { public: - PortfolioPanel(wxWindow* parent, wxWindowID winid = wxID_ANY); + PortfolioPanel(wxWindow* parent, wxWindowID winid = wxID_ANY) + : wxfb::PortfolioPanel(parent, winid) {}; void UpdateStuff(const Config* config, Api* api); }; diff --git a/src/ui/ExchangeAnnouncementsDialog.cpp b/src/ui/ExchangeAnnouncementsDialog.cpp index f4e4616..8005983 100644 --- a/src/ui/ExchangeAnnouncementsDialog.cpp +++ b/src/ui/ExchangeAnnouncementsDialog.cpp @@ -10,15 +10,6 @@ namespace kdeck { class ExchangeAnnouncementsResponse; - // constructor //////////////////////////////////////////////////////////////// - /////////////////////////////////////////////////////////////////////////////// - - ExchangeAnnouncementsDialog::ExchangeAnnouncementsDialog(wxWindow* parent, wxWindowID winid) - : wxfb::ExchangeAnnouncementsDialog(parent, winid) - { - - } - void ExchangeAnnouncementsDialog::UpdateStuff(Api* api) { fgszrAnnouncements->Clear(); diff --git a/src/ui/ExchangeScheduleDialog.cpp b/src/ui/ExchangeScheduleDialog.cpp index 4768c42..a0e1ff2 100644 --- a/src/ui/ExchangeScheduleDialog.cpp +++ b/src/ui/ExchangeScheduleDialog.cpp @@ -11,15 +11,6 @@ namespace kdeck { class ExchangeScheduleResponse; - // constructor //////////////////////////////////////////////////////////////// - /////////////////////////////////////////////////////////////////////////////// - - ExchangeScheduleDialog::ExchangeScheduleDialog(wxWindow* parent, wxWindowID winid) - : wxfb::ExchangeScheduleDialog(parent, winid) - { - - } - void ExchangeScheduleDialog::UpdateStuff(Api* api) { gszrMaintenanceSchedule->Clear(true); diff --git a/src/ui/ExchangeStatusDialog.cpp b/src/ui/ExchangeStatusDialog.cpp index dff7ac9..6fc7bbc 100644 --- a/src/ui/ExchangeStatusDialog.cpp +++ b/src/ui/ExchangeStatusDialog.cpp @@ -8,15 +8,6 @@ namespace kdeck { class ExchangeStatusResponse; - // constructor //////////////////////////////////////////////////////////////// - /////////////////////////////////////////////////////////////////////////////// - - ExchangeStatusDialog::ExchangeStatusDialog(wxWindow* parent, wxWindowID winid) - : wxfb::ExchangeStatusDialog(parent, winid) - { - - } - void ExchangeStatusDialog::UpdateStuff(Api* api) { try diff --git a/src/ui/LoginDialog.cpp b/src/ui/LoginDialog.cpp index d549130..a082e5e 100644 --- a/src/ui/LoginDialog.cpp +++ b/src/ui/LoginDialog.cpp @@ -8,17 +8,6 @@ namespace kdeck { - // constructor //////////////////////////////////////////////////////////////// - /////////////////////////////////////////////////////////////////////////////// - - LoginDialog::LoginDialog(wxWindow* parent, wxWindowID winid) - : wxfb::LoginDialog(parent, winid) - { - - } - - // init /////////////////////////////////////////////////////////////////////// - /////////////////////////////////////////////////////////////////////////////// void LoginDialog::UpdateStuff(const Config* config) { diff --git a/src/ui/PortfolioPanel.cpp b/src/ui/PortfolioPanel.cpp index e8a4a06..38f7913 100644 --- a/src/ui/PortfolioPanel.cpp +++ b/src/ui/PortfolioPanel.cpp @@ -9,17 +9,6 @@ namespace kdeck { - // constructor //////////////////////////////////////////////////////////////// - /////////////////////////////////////////////////////////////////////////////// - - PortfolioPanel::PortfolioPanel(wxWindow* parent, wxWindowID winid) - : wxfb::PortfolioPanel(parent, winid) - { - - } - - // init /////////////////////////////////////////////////////////////////////// - /////////////////////////////////////////////////////////////////////////////// void PortfolioPanel::UpdateStuff(const Config* config, Api* api) {