From 72acef4e159df5dcdb93b3c13b2f9d2e5e4c21a9 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 23 Jan 2024 13:54:16 +0000 Subject: Mark types that have no inheritors as final. --- src/win32/pthread/pthread.cpp | 2 +- src/win32/sigaction/sigaction.h | 2 +- src/win32/windows.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/win32') diff --git a/src/win32/pthread/pthread.cpp b/src/win32/pthread/pthread.cpp index 237f29dd4..971066d0e 100644 --- a/src/win32/pthread/pthread.cpp +++ b/src/win32/pthread/pthread.cpp @@ -8,7 +8,7 @@ #include "pthread.h" -struct ThreadInfo +struct ThreadInfo final { void *(*entry)(void *); void *param; diff --git a/src/win32/sigaction/sigaction.h b/src/win32/sigaction/sigaction.h index 0492ca0e0..aee350d1c 100644 --- a/src/win32/sigaction/sigaction.h +++ b/src/win32/sigaction/sigaction.h @@ -18,7 +18,7 @@ # define SIGPIPE -1 #endif -struct sigaction +struct sigaction final { void (*sa_handler)(int); int sa_flags; diff --git a/src/win32/windows.cpp b/src/win32/windows.cpp index 54ce44202..ddbc20b77 100644 --- a/src/win32/windows.cpp +++ b/src/win32/windows.cpp @@ -18,7 +18,7 @@ #include #include -static struct WindowsLanguage +static struct WindowsLanguage final { Anope::string languageName; USHORT windowsLanguageName; -- cgit