refactor: add explicit this-> where possible
I have knowingly skipped some files/portions of files where this would create merge conflicts for other open PRs.
This commit is contained in:
@@ -36,37 +36,37 @@ struct QByteArrayBuffer {
|
||||
|
||||
[[nodiscard]] constexpr reference operator*() const noexcept
|
||||
{
|
||||
return *ptr;
|
||||
return *this->ptr;
|
||||
}
|
||||
|
||||
[[nodiscard]] constexpr pointer operator->() const noexcept
|
||||
{
|
||||
return ptr;
|
||||
return this->ptr;
|
||||
}
|
||||
|
||||
constexpr ConstIterator &operator++() noexcept
|
||||
{
|
||||
++ptr;
|
||||
++this->ptr;
|
||||
return *this;
|
||||
}
|
||||
|
||||
constexpr ConstIterator operator++(int) noexcept
|
||||
{
|
||||
ConstIterator tmp = *this;
|
||||
++ptr;
|
||||
++this->ptr;
|
||||
return tmp;
|
||||
}
|
||||
|
||||
constexpr ConstIterator &operator--() noexcept
|
||||
{
|
||||
--ptr;
|
||||
--this->ptr;
|
||||
return *this;
|
||||
}
|
||||
|
||||
constexpr ConstIterator operator--(int) noexcept
|
||||
{
|
||||
ConstIterator tmp = *this;
|
||||
--ptr;
|
||||
--this->ptr;
|
||||
return tmp;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user