aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-12-12 16:12:15 -0800
committerChris Robinson <[email protected]>2023-12-12 16:12:15 -0800
commitbdd54018f3dd63a9591fae8b7a21a71e8adc3ddb (patch)
treee1b9305f976c37e15af078a2a4ceb4c88156a6f1 /alc
parent60aa22f20d63a3da9f06b9398a2a8656ebbd0342 (diff)
Remove void from empty parameter lists
Also convert some functions to trailing return types and remove (void) casts.
Diffstat (limited to 'alc')
-rw-r--r--alc/alc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index ebdba66d..a0c4f409 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -2782,7 +2782,7 @@ ALC_API void ALC_APIENTRY alcDestroyContext(ALCcontext *context) noexcept
}
-ALC_API ALCcontext* ALC_APIENTRY alcGetCurrentContext(void) noexcept
+ALC_API auto ALC_APIENTRY alcGetCurrentContext() noexcept -> ALCcontext*
{
ALCcontext *Context{ALCcontext::getThreadContext()};
if(!Context) Context = ALCcontext::sGlobalContext.load();
@@ -2790,7 +2790,7 @@ ALC_API ALCcontext* ALC_APIENTRY alcGetCurrentContext(void) noexcept
}
/** Returns the currently active thread-local context. */
-ALC_API ALCcontext* ALC_APIENTRY alcGetThreadContext(void) noexcept
+ALC_API auto ALC_APIENTRY alcGetThreadContext() noexcept -> ALCcontext*
{ return ALCcontext::getThreadContext(); }
ALC_API ALCboolean ALC_APIENTRY alcMakeContextCurrent(ALCcontext *context) noexcept