summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKurt Pattyn <pattyn.kurt@gmail.com>2013-10-19 14:33:24 +0200
committerKurt Pattyn <pattyn.kurt@gmail.com>2013-10-19 14:33:59 +0200
commitbc7285440308291c17fa2bf94581538f61bc29b3 (patch)
treec72d99f3ad116055bf211e9565fa04ffaab82355 /tests
parenteac6f8de3299ad8e11b623a8e621bd1ed8cab807 (diff)
downloadqtwebsockets-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.cpp3
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());