COMMON: Fix nullptr_t usage

This commit is contained in:
Le Philousophe 2022-05-08 10:27:59 +02:00
parent 509504d16f
commit 3e406ed5af

View file

@ -560,7 +560,7 @@ public:
typedef T &ReferenceType;
explicit ScopedPtr(PointerType o = nullptr) : _pointer(o) {}
ScopedPtr(nullptr_t) : _pointer(nullptr) {}
ScopedPtr(std::nullptr_t) : _pointer(nullptr) {}
ReferenceType operator*() const { return *_pointer; }
PointerType operator->() const { return _pointer; }
@ -586,7 +586,7 @@ public:
/**
* Affectation with nullptr
*/
ScopedPtr &operator=(nullptr_t) {
ScopedPtr &operator=(std::nullptr_t) {
reset(nullptr);
}