aboutsummaryrefslogtreecommitdiff
path: root/c/common.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-17 02:05:15 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-17 02:05:15 +0200
commite96b4db3fb46384f286e9297186b87648c7219c4 (patch)
tree16766c9d41426ee110f374e5915ab5d6b9bcdb2a /c/common.h
parent26bc41099c10b3a63fd744690df5c25cb713718b (diff)
downloadEpisodeBrowser-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.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/c/common.h b/c/common.h
index d6e5848..5528ff6 100644
--- a/c/common.h
+++ b/c/common.h
@@ -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;
};