QArrayDataPointer: add comment that !isMutable() indicates fromRawData()

Change-Id: Id0d6ab33140caec65828af6989eea6d15c0ec964
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Ahmad Samir 2024-11-11 11:22:02 +02:00
parent e770448a8c
commit 68f970d285

View File

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