From 68f970d285f8964a722c63518125efea7dca8daa Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Mon, 11 Nov 2024 11:22:02 +0200 Subject: [PATCH] QArrayDataPointer: add comment that !isMutable() indicates fromRawData() Change-Id: Id0d6ab33140caec65828af6989eea6d15c0ec964 Reviewed-by: Thiago Macieira --- src/corelib/tools/qarraydatapointer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/tools/qarraydatapointer.h b/src/corelib/tools/qarraydatapointer.h index 55540d10a43..75ca2af3a0d 100644 --- a/src/corelib/tools/qarraydatapointer.h +++ b/src/corelib/tools/qarraydatapointer.h @@ -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(); }