diff options
author | Kurt Pattyn <pattyn.kurt@gmail.com> | 2013-10-19 14:33:24 +0200 |
---|---|---|
committer | Kurt Pattyn <pattyn.kurt@gmail.com> | 2013-10-19 14:33:59 +0200 |
commit | bc7285440308291c17fa2bf94581538f61bc29b3 (patch) | |
tree | c72d99f3ad116055bf211e9565fa04ffaab82355 /tests | |
parent | eac6f8de3299ad8e11b623a8e621bd1ed8cab807 (diff) | |
download | qtwebsockets-bc7285440308291c17fa2bf94581538f61bc29b3.tar.gz |
Put assignment on separate line to avoid compiler optimization
Change-Id: I981c2caba0d6a96ee54226ec001de6da8df9e5c2
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/websocketframe/tst_websocketframe.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/websocketframe/tst_websocketframe.cpp b/tests/auto/websocketframe/tst_websocketframe.cpp index ccce12c..9cd94fe 100644 --- a/tests/auto/websocketframe/tst_websocketframe.cpp +++ b/tests/auto/websocketframe/tst_websocketframe.cpp @@ -228,7 +228,8 @@ void tst_WebSocketFrame::tst_copyConstructorAndAssignment() QCOMPARE(other.rsv3(), frame.rsv3()); } { - QWebSocketFrame other = frame; + QWebSocketFrame other; + other = frame; QCOMPARE(other.closeCode(), frame.closeCode()); QCOMPARE(other.closeReason(), frame.closeReason()); QCOMPARE(other.hasMask(), frame.hasMask()); |