mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
Remove irr
namespace (#16309)
This commit is contained in:
parent
7e22c72492
commit
61551cfc3a
381 changed files with 680 additions and 1632 deletions
|
@ -20,7 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#pragma once
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
namespace irr { class IReferenceCounted; }
|
||||
class IReferenceCounted;
|
||||
|
||||
/** Shared pointer for IrrLicht objects.
|
||||
*
|
||||
|
@ -125,7 +125,7 @@ public:
|
|||
*/
|
||||
void reset(ReferenceCounted *object = nullptr) noexcept
|
||||
{
|
||||
static_assert(std::is_base_of_v<irr::IReferenceCounted, ReferenceCounted>,
|
||||
static_assert(std::is_base_of_v<IReferenceCounted, ReferenceCounted>,
|
||||
"Class is not an IReferenceCounted");
|
||||
if (value)
|
||||
value->drop();
|
||||
|
@ -137,7 +137,7 @@ public:
|
|||
*/
|
||||
void grab(ReferenceCounted *object) noexcept
|
||||
{
|
||||
static_assert(std::is_base_of_v<irr::IReferenceCounted, ReferenceCounted>,
|
||||
static_assert(std::is_base_of_v<IReferenceCounted, ReferenceCounted>,
|
||||
"Class is not an IReferenceCounted");
|
||||
if (object)
|
||||
object->grab();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue