diff options
| author | Ahmad Samir <a.samirh78@gmail.com> | 2024-11-11 11:22:02 +0200 |
|---|---|---|
| committer | Ahmad Samir <a.samirh78@gmail.com> | 2024-11-13 01:48:29 +0200 |
| commit | 68f970d285f8964a722c63518125efea7dca8daa (patch) | |
| tree | 596c830eab7cf5847edabc966180c7e3b73259b1 /src/corelib/tools/qarraydatapointer.h | |
| parent | e770448a8c46ff61c4d9536d2540952bec4c5780 (diff) | |
QArrayDataPointer: add comment that !isMutable() indicates fromRawData()
Change-Id: Id0d6ab33140caec65828af6989eea6d15c0ec964
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qarraydatapointer.h')
| -rw-r--r-- | src/corelib/tools/qarraydatapointer.h | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |
