From a87adcaa8df31489668f9d32471a03c40f8df113 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Mon, 13 May 2019 21:16:54 +0200 Subject: [PATCH] QContiguousCache: add noexcept Change-Id: I069842fe705d2e73222ffb095792d7e3e518cfd9 Reviewed-by: Thiago Macieira --- src/corelib/tools/qcontiguouscache.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }