QtPrivate::ResultIteratorBase: remove incorrect noexcept
The (in)equality operators cannot be noexcept, because the QMap::const_iterator comparison is not noexcept. QMap::const_iterator basically uses std::map::const_iterator comparison operators, and I could not find any proof that it is noexcept. Amends ed71387d1cc06afff42ac844a3887778685ce793. Found in 6.8 API review. Change-Id: I9014052588a7864b729a7b8ac703f5145675f860 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Marc Mutz <marc.mutz@qt.io> (cherry picked from commit a942a373051ddab40742f213e36fa5851c97b384) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
4cef74fe76
commit
67ce24cf30
@ -56,11 +56,11 @@ public:
|
||||
|
||||
private:
|
||||
friend bool comparesEqual(const ResultIteratorBase &lhs,
|
||||
const ResultIteratorBase &rhs) noexcept
|
||||
const ResultIteratorBase &rhs)
|
||||
{
|
||||
return (lhs.mapIterator == rhs.mapIterator && lhs.m_vectorIndex == rhs.m_vectorIndex);
|
||||
}
|
||||
Q_DECLARE_EQUALITY_COMPARABLE(ResultIteratorBase)
|
||||
Q_DECLARE_EQUALITY_COMPARABLE_NON_NOEXCEPT(ResultIteratorBase)
|
||||
protected:
|
||||
QMap<int, ResultItem>::const_iterator mapIterator;
|
||||
int m_vectorIndex;
|
||||
|
Loading…
x
Reference in New Issue
Block a user