diff --git a/src/corelib/tools/qcontiguouscache.h b/src/corelib/tools/qcontiguouscache.h index 433e3f9ea49..592e31bfd29 100644 --- a/src/corelib/tools/qcontiguouscache.h +++ b/src/corelib/tools/qcontiguouscache.h @@ -107,9 +107,9 @@ public: #endif QContiguousCache &operator=(const QContiguousCache &other); - inline QContiguousCache &operator=(QContiguousCache &&other) + inline QContiguousCache &operator=(QContiguousCache &&other) noexcept { qSwap(d, other.d); return *this; } - inline void swap(QContiguousCache &other) { qSwap(d, other.d); } + inline void swap(QContiguousCache &other) noexcept { qSwap(d, other.d); } bool operator==(const QContiguousCache &other) const; inline bool operator!=(const QContiguousCache &other) const { return !(*this == other); }