mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Get rid of _IRR_OVERRIDE_
macro
This commit is contained in:
parent
5f1ff453c9
commit
695d526764
2 changed files with 1 additions and 5 deletions
|
@ -66,10 +66,6 @@ typedef char fschar_t;
|
|||
|
||||
} // 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
|
||||
// Note: an assert(false) is included first to catch this in debug builds
|
||||
#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
|
||||
if (relative != static_cast<bool>(SDL_GetRelativeMouseMode())) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue