diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-17 02:05:15 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-17 02:05:15 +0200 |
commit | e96b4db3fb46384f286e9297186b87648c7219c4 (patch) | |
tree | 16766c9d41426ee110f374e5915ab5d6b9bcdb2a /c/common.h | |
parent | 26bc41099c10b3a63fd744690df5c25cb713718b (diff) | |
download | EpisodeBrowser-e96b4db3fb46384f286e9297186b87648c7219c4.tar.gz |
Add const to pointers, update spacing.
It seems that "right-spaced" pointers are more widely used among C++
programmers.
Diffstat (limited to 'c/common.h')
-rw-r--r-- | c/common.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -15,17 +15,17 @@ struct Win32Error : public std::exception { Win32Error(DWORD); ~Win32Error(void); - virtual const char *what(void) const noexcept override; + virtual const char* what(void) const noexcept override; private: DWORD m_dwErr; - char *m_szMsg = NULL; + char* const m_szMsg = NULL; }; struct Library { - Library(const TCHAR *); + Library(const TCHAR*); ~Library(void); - FARPROC GetProcAddress(const char *); + FARPROC GetProcAddress(const char*); private: HMODULE m_hModule; }; |