From 41926908ecfcf043cd149e93f0c710f8cecd96a0 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 30 Oct 2022 12:16:52 +0000 Subject: Fix some types which were missed when making stuff final. --- include/modules/dns.h | 4 ++-- include/modules/reload.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include/modules') diff --git a/include/modules/dns.h b/include/modules/dns.h index c8669fff0..95685eae7 100644 --- a/include/modules/dns.h +++ b/include/modules/dns.h @@ -99,7 +99,7 @@ namespace DNS bool operator==(const Question& other) const { return ((name == other.name) && (type == other.type)); } bool operator!=(const Question& other) const { return (!(*this == other)); } - struct hash + struct hash final { size_t operator()(const Question& question) const { @@ -110,7 +110,7 @@ namespace DNS namespace Record { - struct SRV + struct SRV final { uint16_t priority = UINT16_MAX; uint16_t weight = 0; diff --git a/include/modules/reload.h b/include/modules/reload.h index fb10fe355..e70782f54 100644 --- a/include/modules/reload.h +++ b/include/modules/reload.h @@ -28,7 +28,7 @@ namespace ReloadModule */ class CustomData { - struct Data + struct Data final { EventListener* handler; void* data; -- cgit v1.3.1-10-gc9f91