1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Get rid of _IRR_OVERRIDE_ macro

This commit is contained in:
Lars Mueller 2025-04-04 16:32:52 +02:00 committed by Lars Müller
parent 5f1ff453c9
commit 695d526764
2 changed files with 1 additions and 5 deletions

View file

@ -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)

View file

@ -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())) {