aboutsummaryrefslogtreecommitdiff
path: root/c/common.cpp
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.cpp
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.cpp')
-rw-r--r--c/common.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/common.cpp b/c/common.cpp
index 7a1438d..d109081 100644
--- a/c/common.cpp
+++ b/c/common.cpp
@@ -21,12 +21,12 @@ Win32Error::~Win32Error()
HeapFree(GetProcessHeap(), 0, m_szMsg);
}
-const char *Win32Error::what(void) const noexcept
+const char* Win32Error::what(void) const noexcept
{
return m_szMsg;
}
-Library::Library(const TCHAR *tszLibrary)
+Library::Library(const TCHAR* const tszLibrary)
{
m_hModule = LoadLibrary(tszLibrary);
if (!m_hModule)
@@ -38,7 +38,7 @@ Library::~Library()
FreeLibrary(m_hModule);
}
-FARPROC Library::GetProcAddress(const char *szProc)
+FARPROC Library::GetProcAddress(const char* const szProc)
{
return ::GetProcAddress(m_hModule, szProc);
}