Avoid an explicit static_cast to bool

This commit is contained in:
Chris Robinson 2018-11-17 20:39:45 -08:00
parent d10301c209
commit 20e62aa959

View File

@ -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; }