diff options
Diffstat (limited to 'src/corelib/tools/qbitarray.h')
-rw-r--r-- | src/corelib/tools/qbitarray.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/tools/qbitarray.h b/src/corelib/tools/qbitarray.h index 768dfa912d..8d550554ff 100644 --- a/src/corelib/tools/qbitarray.h +++ b/src/corelib/tools/qbitarray.h @@ -53,12 +53,12 @@ public: QBitArray(const QBitArray &other) : d(other.d) {} inline QBitArray &operator=(const QBitArray &other) { d = other.d; return *this; } #ifdef Q_COMPILER_RVALUE_REFS - inline QBitArray(QBitArray &&other) : d(std::move(other.d)) {} - inline QBitArray &operator=(QBitArray &&other) + inline QBitArray(QBitArray &&other) Q_DECL_NOTHROW : d(std::move(other.d)) {} + inline QBitArray &operator=(QBitArray &&other) Q_DECL_NOTHROW { qSwap(d, other.d); return *this; } #endif - inline void swap(QBitArray &other) { qSwap(d, other.d); } + inline void swap(QBitArray &other) Q_DECL_NOTHROW { qSwap(d, other.d); } inline int size() const { return (d.size() << 3) - *d.constData(); } inline int count() const { return (d.size() << 3) - *d.constData(); } |