From 6a2b55588278d9401eb946ec94970bbea1069f58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 17 Jul 2022 18:10:03 +0200 Subject: Prefer f() over f(void). f(void) is a C-ism that is valid but unnecessary in C++. --- c/common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'c/common.h') diff --git a/c/common.h b/c/common.h index 2bcf0d7..515c75c 100644 --- a/c/common.h +++ b/c/common.h @@ -14,8 +14,8 @@ struct Win32Error : public std::exception { Win32Error(DWORD dwErr); - ~Win32Error(void); - virtual const char* what(void) const noexcept override; + ~Win32Error(); + virtual const char* what() const noexcept override; private: DWORD m_dwErr; char* const m_szMsg = NULL; @@ -24,7 +24,7 @@ private: struct Library { Library(const TCHAR* tszLibrary); - ~Library(void); + ~Library(); FARPROC GetProcAddress(const char* szProc); private: HMODULE m_hModule; -- cgit v1.2.3