aboutsummaryrefslogtreecommitdiffstats
path: root/win/vncconfig/Connections.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-04-03 17:26:03 +0200
committerPierre Ossman <ossman@cendio.se>2024-06-24 13:47:18 +0200
commite3132b406de025ec4ecd612977425c7e7273ecf9 (patch)
tree815ab6630f84810b0e4c9b2c65917287b4e01692 /win/vncconfig/Connections.h
parent8530a1bd034feee8bd6e3a436887af187b058f2b (diff)
downloadtigervnc-e3132b406de025ec4ecd612977425c7e7273ecf9.tar.gz
tigervnc-e3132b406de025ec4ecd612977425c7e7273ecf9.zip
Mark overridden virtual functions
Use the new "override" keyword to properly differentiate between new virtual methods, and existing virtual methods being overridden.
Diffstat (limited to 'win/vncconfig/Connections.h')
-rw-r--r--win/vncconfig/Connections.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/win/vncconfig/Connections.h b/win/vncconfig/Connections.h
index 9ff6f6a4..a540bd76 100644
--- a/win/vncconfig/Connections.h
+++ b/win/vncconfig/Connections.h
@@ -46,7 +46,7 @@ namespace rfb {
pattern = pat;
return Dialog::showDialog(MAKEINTRESOURCE(IDD_CONN_HOST));
}
- void initDialog() {
+ void initDialog() override {
if (pattern.empty())
pattern = "+";
@@ -60,7 +60,7 @@ namespace rfb {
setItemString(IDC_HOST_PATTERN, &pattern.c_str()[1]);
pattern.clear();
}
- bool onOk() {
+ bool onOk() override {
std::string newPat;
if (isItemChecked(IDC_ALLOW))
newPat = '+';
@@ -88,7 +88,7 @@ namespace rfb {
public:
ConnectionsPage(const RegKey& rk)
: PropSheetPage(GetModuleHandle(nullptr), MAKEINTRESOURCE(IDD_CONNECTIONS)), regKey(rk) {}
- void initDialog() {
+ void initDialog() override {
vlog.debug("set IDC_PORT %d", (int)port_number);
setItemInt(IDC_PORT, port_number ? port_number : 5900);
setItemChecked(IDC_RFB_ENABLE, port_number != 0);
@@ -108,7 +108,7 @@ namespace rfb {
onCommand(IDC_RFB_ENABLE, EN_CHANGE);
}
- bool onCommand(int id, int cmd) {
+ bool onCommand(int id, int cmd) override {
switch (id) {
case IDC_HOSTS:
{
@@ -221,7 +221,7 @@ namespace rfb {
}
return false;
}
- bool onOk() {
+ bool onOk() override {
regKey.setInt("PortNumber", isItemChecked(IDC_RFB_ENABLE) ? getItemInt(IDC_PORT) : 0);
regKey.setInt("IdleTimeout", getItemInt(IDC_IDLE_TIMEOUT));
regKey.setInt("LocalHost", isItemChecked(IDC_LOCALHOST));