mirror of
https://github.com/zeldaret/botw
synced 2026-08-01 16:10:06 -04:00
Enable -Wdeprecated warnings and fix them
This commit is contained in:
@@ -17,6 +17,17 @@ public:
|
||||
/// Destructor that automatically releases any acquired BaseProc.
|
||||
~ActorLinkConstDataAccess();
|
||||
|
||||
ActorLinkConstDataAccess(const ActorLinkConstDataAccess&) = delete;
|
||||
ActorLinkConstDataAccess& operator=(const ActorLinkConstDataAccess&) = delete;
|
||||
ActorLinkConstDataAccess(ActorLinkConstDataAccess&& other) noexcept {
|
||||
*this = std::move(other);
|
||||
}
|
||||
ActorLinkConstDataAccess& operator=(ActorLinkConstDataAccess&& other) noexcept {
|
||||
std::swap(mAcquired, other.mAcquired);
|
||||
std::swap(mProc, other.mProc);
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// Acquire a BaseProc. This increments its reference count.
|
||||
/// If an actor was already acquired, it is released.
|
||||
bool acquire(BaseProc* proc);
|
||||
|
||||
Reference in New Issue
Block a user