summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qarraydatapointer.h
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2022-11-26 12:50:00 +0200
committerAhmad Samir <a.samirh78@gmail.com>2022-12-11 15:44:26 +0200
commit2fe3b0e5640df34d5512e06ecbc5739c2d4df21e (patch)
tree600624fcc281e5b5d1ade2a153ee6c325c594a12 /src/corelib/tools/qarraydatapointer.h
parentfa2153bd10057d7adbc5f5ededa1fd97c4a68161 (diff)
QContainerTools: add q_points_into_range overload
Looking at the use-cases of the already existing q_points_into_range overload, all of them can be ported to the new one (i.e. all of them were using range [begin, end)). Change-Id: I4bfdd68271512b88a9800a16237ff967a367eaeb Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qarraydatapointer.h')
-rw-r--r--src/corelib/tools/qarraydatapointer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qarraydatapointer.h b/src/corelib/tools/qarraydatapointer.h
index 3e1c2c11e4..f0b689b499 100644
--- a/src/corelib/tools/qarraydatapointer.h
+++ b/src/corelib/tools/qarraydatapointer.h
@@ -300,7 +300,7 @@ public:
T *res = this->ptr + offset;
QtPrivate::q_relocate_overlap_n(this->ptr, this->size, res);
// first update data pointer, then this->ptr
- if (data && QtPrivate::q_points_into_range(*data, this->begin(), this->end()))
+ if (data && QtPrivate::q_points_into_range(*data, *this))
*data += offset;
this->ptr = res;
}