mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-16 00:34:19 +00:00
Fix missing std::nullptr defines
This commit is contained in:
parent
24f05c405a
commit
44359cb429
1 changed files with 2 additions and 2 deletions
|
|
@ -212,8 +212,8 @@ public:
|
|||
ObjCBlock (C* _this, R (C::*fn)(P...)) : block (CreateObjCBlock (_this, fn)) {}
|
||||
ObjCBlock (BlockType b) : block ([b copy]) {}
|
||||
ObjCBlock& operator= (const BlockType& other) { if (block != nullptr) { [block release]; } block = [other copy]; return *this; }
|
||||
bool operator== (std::nullptr_t) const { return (block == nullptr); }
|
||||
bool operator!= (std::nullptr_t) const { return (block != nullptr); }
|
||||
bool operator== (const void* ptr) const { return (block == ptr); }
|
||||
bool operator!= (const void* ptr) const { return (block != ptr); }
|
||||
~ObjCBlock() { if (block != nullptr) [block release]; }
|
||||
|
||||
operator BlockType() { return block; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue