1
0
Fork 0
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:
hogliux 2016-04-07 09:59:35 +01:00
parent 24f05c405a
commit 44359cb429

View file

@ -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; }