commit 91d251f33a0d78d8ce635f65034f5816153a732b
parent 356892aaa3f68359fcd88f605c7c01b17e0c7bd0
Author: cfillion <cfillion@users.noreply.github.com>
Date: Fri, 1 Apr 2016 23:35:29 -0400
oops, short was not big enough to store command identifiers
this fixes the link selection menus in the about dialog
Diffstat:
12 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/src/about.cpp b/src/about.cpp
@@ -78,7 +78,7 @@ void About::onInit()
#endif
}
-void About::onCommand(const short id, short)
+void About::onCommand(const int id, int)
{
switch(id) {
case IDC_WEBSITE:
diff --git a/src/about.hpp b/src/about.hpp
@@ -40,7 +40,7 @@ public:
protected:
void onInit() override;
- void onCommand(short, short) override;
+ void onCommand(int, int) override;
void onContextMenu(HWND, int x, int y) override;
private:
diff --git a/src/browser.cpp b/src/browser.cpp
@@ -96,7 +96,7 @@ void Browser::onInit()
m_filterTimer = startTimer(200);
}
-void Browser::onCommand(const short id, const short event)
+void Browser::onCommand(const int id, const int event)
{
namespace arg = std::placeholders;
diff --git a/src/browser.hpp b/src/browser.hpp
@@ -43,7 +43,7 @@ public:
protected:
void onInit() override;
- void onCommand(short, short) override;
+ void onCommand(int, int) override;
void onContextMenu(HWND, int x, int y) override;
void onTimer(int) override;
diff --git a/src/dialog.cpp b/src/dialog.cpp
@@ -242,7 +242,7 @@ void Dialog::onTimer(int)
{
}
-void Dialog::onCommand(const short id, short)
+void Dialog::onCommand(const int id, int)
{
switch(id) {
case IDOK:
diff --git a/src/dialog.hpp b/src/dialog.hpp
@@ -115,7 +115,7 @@ protected:
virtual void onShow();
virtual void onHide();
virtual void onTimer(int id);
- virtual void onCommand(short id, short event);
+ virtual void onCommand(int id, int event);
virtual void onNotify(LPNMHDR, LPARAM);
virtual void onContextMenu(HWND, int x, int y);
diff --git a/src/import.cpp b/src/import.cpp
@@ -55,7 +55,7 @@ void Import::onInit()
#endif
}
-void Import::onCommand(const short id, short)
+void Import::onCommand(const int id, int)
{
switch(id) {
case IDOK:
diff --git a/src/import.hpp b/src/import.hpp
@@ -34,7 +34,7 @@ public:
protected:
void onInit() override;
- void onCommand(short, short) override;
+ void onCommand(int, int) override;
void onTimer(int) override;
private:
diff --git a/src/manager.cpp b/src/manager.cpp
@@ -58,7 +58,7 @@ void Manager::onInit()
#endif
}
-void Manager::onCommand(const short id, short)
+void Manager::onCommand(const int id, int)
{
switch(id) {
case IDC_IMPORT:
diff --git a/src/manager.hpp b/src/manager.hpp
@@ -38,7 +38,7 @@ public:
protected:
void onInit() override;
- void onCommand(short, short) override;
+ void onCommand(int, int) override;
void onContextMenu(HWND, int x, int y) override;
private:
diff --git a/src/progress.cpp b/src/progress.cpp
@@ -38,7 +38,7 @@ void Progress::onInit()
SetWindowText(m_label, AUTO_STR("Initializing..."));
}
-void Progress::onCommand(const short id, short)
+void Progress::onCommand(const int id, int)
{
switch(id) {
case IDCANCEL:
diff --git a/src/progress.hpp b/src/progress.hpp
@@ -31,7 +31,7 @@ public:
protected:
void onInit() override;
- void onCommand(short, short) override;
+ void onCommand(int, int) override;
private:
void addDownload(Download *);