diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2019-07-08 21:55:14 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2019-07-08 23:34:06 +0200 |
commit | 36f6bd7cf007c27772de5725791b7bc9040a041d (patch) | |
tree | aba1dff250378fc48fa36fb8042d31de6d83e064 /src/corelib | |
parent | 8f75910deaf5a41506dc5cb0fe412a8f4674be0d (diff) |
QHash: mark the equality operator for QHashDummyValue constexpr noexcept
Who knows what this may end up being good for.
Change-Id: Ib5e73b0170ebba54f87f36e75b7c407f801c52a0
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/tools/qhash.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qhash.h b/src/corelib/tools/qhash.h index 4b4cb2d5f0..f4590c6672 100644 --- a/src/corelib/tools/qhash.h +++ b/src/corelib/tools/qhash.h @@ -136,7 +136,7 @@ struct QHashDummyValue { }; -inline bool operator==(const QHashDummyValue & /* v1 */, const QHashDummyValue & /* v2 */) +constexpr bool operator==(const QHashDummyValue &, const QHashDummyValue &) noexcept { return true; } |