COMMON: Fix nullptr_t usage
This commit is contained in:
parent
509504d16f
commit
3e406ed5af
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue