diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2022-03-31 11:39:43 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2022-04-05 15:54:18 +0200 |
commit | c2b91a8f25a425f509f16d8b1ef1b7e8d3beb66d (patch) | |
tree | 62a880983693006c9cbcad8c8e4202a7d1c01c6f /src | |
parent | 073d2dd681b16b45d5c62d0178a9c1cb63b4b63c (diff) | |
download | qtwebsockets-c2b91a8f25a425f509f16d8b1ef1b7e8d3beb66d.tar.gz |
Mark QWebSocketHandshakeOptions() move-constructor as noexcept
CodeChecker says it should be so marked.
Apparently this is good for performance.
Change-Id: I93fc95fd61ae37fe7a8927f9fbfb593acabb74ca
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/websockets/qwebsockethandshakeoptions.cpp | 2 | ||||
-rw-r--r-- | src/websockets/qwebsockethandshakeoptions.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/websockets/qwebsockethandshakeoptions.cpp b/src/websockets/qwebsockethandshakeoptions.cpp index 0d90a92..cef92c5 100644 --- a/src/websockets/qwebsockethandshakeoptions.cpp +++ b/src/websockets/qwebsockethandshakeoptions.cpp @@ -76,7 +76,7 @@ QWebSocketHandshakeOptions::QWebSocketHandshakeOptions(const QWebSocketHandshake /*! \brief Constructs a QWebSocketHandshakeOptions that is moved from \a other. */ -QWebSocketHandshakeOptions::QWebSocketHandshakeOptions(QWebSocketHandshakeOptions &&other) +QWebSocketHandshakeOptions::QWebSocketHandshakeOptions(QWebSocketHandshakeOptions &&other) noexcept : d(std::move(other.d)) { } diff --git a/src/websockets/qwebsockethandshakeoptions.h b/src/websockets/qwebsockethandshakeoptions.h index 82eaec7..0991a76 100644 --- a/src/websockets/qwebsockethandshakeoptions.h +++ b/src/websockets/qwebsockethandshakeoptions.h @@ -55,7 +55,7 @@ class Q_WEBSOCKETS_EXPORT QWebSocketHandshakeOptions public: QWebSocketHandshakeOptions(); QWebSocketHandshakeOptions(const QWebSocketHandshakeOptions &other); - QWebSocketHandshakeOptions(QWebSocketHandshakeOptions &&other); + QWebSocketHandshakeOptions(QWebSocketHandshakeOptions &&other) noexcept; ~QWebSocketHandshakeOptions(); QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(QWebSocketHandshakeOptions) |