summaryrefslogtreecommitdiffstats
path: root/src/mqtt/qmqtttopicfilter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mqtt/qmqtttopicfilter.h')
-rw-r--r--src/mqtt/qmqtttopicfilter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mqtt/qmqtttopicfilter.h b/src/mqtt/qmqtttopicfilter.h
index 39e3510..fafdf51 100644
--- a/src/mqtt/qmqtttopicfilter.h
+++ b/src/mqtt/qmqtttopicfilter.h
@@ -61,10 +61,10 @@ public:
QMqttTopicFilter &operator=(const QMqttTopicFilter &filter);
#ifdef Q_COMPILER_RVALUE_REFS
- inline QMqttTopicFilter &operator=(QMqttTopicFilter &&other) Q_DECL_NOTHROW { qSwap(d, other.d); return *this; }
+ QMqttTopicFilter &operator=(QMqttTopicFilter &&other) noexcept { swap(other); return *this; }
#endif
- inline void swap(QMqttTopicFilter &other) Q_DECL_NOTHROW { qSwap(d, other.d); }
+ void swap(QMqttTopicFilter &other) noexcept { d.swap(other.d); }
QString filter() const;
void setFilter(const QString &filter);