path: root/src/corelib/kernel/
diff options
authorAllan Sandfeld Jensen <>2019-04-09 13:33:15 +0200
committerAllan Sandfeld Jensen <>2019-04-09 14:48:42 +0000
commit95f787bfdc890c259e8b347bdad9123d534efe0f (patch)
treeda996356102a4ebf953d662c81442a82ebed27fd /src/corelib/kernel/
parent434c866e1b76c12b3bf3dcdd76a00f4d29aa64d3 (diff)
Replace Q_DECL_NOTHROW with noexcept the remaining places
The first replacement had missed objective-C++ code some places ourside the src dir. In C-files Q_DECL_NOTHROW is replaced with Q_DECL_NOEXCEPT as we still need to turn it off when compiled in C mode, but can get rid of the old NOTHROW moniker. Change-Id: I6370f57066679c5120d0265a69e7e378e09d4759 Reviewed-by: Thiago Macieira <>
Diffstat (limited to 'src/corelib/kernel/')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/ b/src/corelib/kernel/
index 6687eb88a5..6b51eb65d9 100644
--- a/src/corelib/kernel/
+++ b/src/corelib/kernel/
@@ -371,7 +371,7 @@ bool operator<(const KeyPair &entry, const Qt::Key &key)
struct qtKey2CocoaKeySortLessThan
typedef bool result_type;
- Q_DECL_CONSTEXPR result_type operator()(const KeyPair &entry1, const KeyPair &entry2) const Q_DECL_NOTHROW
+ Q_DECL_CONSTEXPR result_type operator()(const KeyPair &entry1, const KeyPair &entry2) const noexcept
return entry1.qtKey < entry2.qtKey;