aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-17 20:39:45 -0800
committerChris Robinson <[email protected]>2018-11-17 20:39:45 -0800
commit20e62aa959f922a408312a4ed8c365e9e976510d (patch)
treeddb5fec813895068becb50499a9ce3095eb7e78f /OpenAL32/Include
parentd10301c209a1194741d442a44cc4c0d819803144 (diff)
Avoid an explicit static_cast to bool
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alMain.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 75cd0576..d06aeaf2 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -952,7 +952,7 @@ public:
return *this;
}
- operator bool() const noexcept { return static_cast<bool>(mCtx); }
+ operator bool() const noexcept { return mCtx; }
ALCcontext* operator->() noexcept { return mCtx; }
ALCcontext* get() noexcept { return mCtx; }