QStorageInfo: actually make the (in)equality operators noexcept
Do not use the getters, as they are not noexcept. Directly access the members of the d_ptr instead. Amends d292648d0bbac50388dae035dc34782accb3807f. Found in 6.8 API review. Change-Id: I69eee9db2274d1e99a4f56e841cfaea223341ced Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Marc Mutz <marc.mutz@qt.io> (cherry picked from commit 495a06a22aef2aa62dd993217e4f4ec099ad4e94) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
9f06e0b1f8
commit
d6e8fa64e8
@ -408,7 +408,7 @@ bool comparesEqual(const QStorageInfo &lhs, const QStorageInfo &rhs) noexcept
|
||||
{
|
||||
if (lhs.d == rhs.d)
|
||||
return true;
|
||||
return lhs.device() == rhs.device() && lhs.rootPath() == rhs.rootPath();
|
||||
return lhs.d->device == rhs.d->device && lhs.d->rootPath == rhs.d->rootPath;
|
||||
}
|
||||
|
||||
#ifndef QT_NO_DEBUG_STREAM
|
||||
|
Loading…
x
Reference in New Issue
Block a user