QArrayDataPointer: add comment that !isMutable() indicates fromRawData()
Change-Id: Id0d6ab33140caec65828af6989eea6d15c0ec964 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
e770448a8c
commit
68f970d285
@ -450,7 +450,7 @@ public:
|
||||
qsizetype constAllocatedCapacity() const noexcept { return d ? d->constAllocatedCapacity() : 0; }
|
||||
void ref() noexcept { if (d) d->ref(); }
|
||||
bool deref() noexcept { return !d || d->deref(); }
|
||||
bool isMutable() const noexcept { return d; }
|
||||
bool isMutable() const noexcept { return d; } // Returns false if this object is fromRawData()
|
||||
bool isShared() const noexcept { return !d || d->isShared(); }
|
||||
bool isSharedWith(const QArrayDataPointer &other) const noexcept { return d && d == other.d; }
|
||||
bool needsDetach() const noexcept { return !d || d->needsDetach(); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user