mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Get rid of _IRR_OVERRIDE_
macro
This commit is contained in:
committed by
Lars Müller
parent
5f1ff453c9
commit
695d526764
@@ -66,10 +66,6 @@ typedef char fschar_t;
|
|||||||
|
|
||||||
} // end namespace irr
|
} // end namespace irr
|
||||||
|
|
||||||
//! deprecated macro for virtual function override
|
|
||||||
/** prefer to use the override keyword for new code */
|
|
||||||
#define _IRR_OVERRIDE_ override
|
|
||||||
|
|
||||||
// Invokes undefined behavior for unreachable code optimization
|
// Invokes undefined behavior for unreachable code optimization
|
||||||
// Note: an assert(false) is included first to catch this in debug builds
|
// Note: an assert(false) is included first to catch this in debug builds
|
||||||
#if defined(__cpp_lib_unreachable)
|
#if defined(__cpp_lib_unreachable)
|
||||||
|
@@ -206,7 +206,7 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void setRelativeMode(bool relative) _IRR_OVERRIDE_
|
virtual void setRelativeMode(bool relative) override
|
||||||
{
|
{
|
||||||
// Only change it when necessary, as it flushes mouse motion when enabled
|
// Only change it when necessary, as it flushes mouse motion when enabled
|
||||||
if (relative != static_cast<bool>(SDL_GetRelativeMouseMode())) {
|
if (relative != static_cast<bool>(SDL_GetRelativeMouseMode())) {
|
||||||
|
Reference in New Issue
Block a user