mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Revised Uuid::null, and turned it into a static method, not a variable.
This commit is contained in:
parent
57db92b276
commit
5804ecfa5e
2 changed files with 10 additions and 7 deletions
|
|
@ -51,7 +51,10 @@ Uuid& Uuid::operator= (const Uuid& other) noexcept
|
|||
bool Uuid::operator== (const Uuid& other) const noexcept { return memcmp (uuid, other.uuid, sizeof (uuid)) == 0; }
|
||||
bool Uuid::operator!= (const Uuid& other) const noexcept { return ! operator== (other); }
|
||||
|
||||
Uuid Uuid::null ((const uint8*) nullptr);
|
||||
Uuid Uuid::null() noexcept
|
||||
{
|
||||
return Uuid ((const uint8*) nullptr);
|
||||
}
|
||||
|
||||
bool Uuid::isNull() const noexcept
|
||||
{
|
||||
|
|
|
|||
|
|
@ -51,20 +51,20 @@ public:
|
|||
~Uuid() noexcept;
|
||||
|
||||
/** Creates a copy of another UUID. */
|
||||
Uuid (const Uuid& other) noexcept;
|
||||
Uuid (const Uuid&) noexcept;
|
||||
|
||||
/** Copies another UUID. */
|
||||
Uuid& operator= (const Uuid& other) noexcept;
|
||||
Uuid& operator= (const Uuid&) noexcept;
|
||||
|
||||
//==============================================================================
|
||||
/** Returns true if the ID is zero. */
|
||||
bool isNull() const noexcept;
|
||||
|
||||
/** A static null Uuid object. */
|
||||
static Uuid null;
|
||||
/** Returns a null Uuid object. */
|
||||
static Uuid null() noexcept;
|
||||
|
||||
bool operator== (const Uuid& other) const noexcept;
|
||||
bool operator!= (const Uuid& other) const noexcept;
|
||||
bool operator== (const Uuid&) const noexcept;
|
||||
bool operator!= (const Uuid&) const noexcept;
|
||||
|
||||
//==============================================================================
|
||||
/** Returns a stringified version of this UUID.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue