From a96b063605ece83d30c32529f2592f650c4165a0 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Tue, 2 Dec 2014 13:25:50 +0100 Subject: Don't use volatile for thread synchronization Use QAtomicInt instead, or just remove the attribute because it's only used in non-threaded code. Change-Id: Ieb762ab448ecc312a82478419dc0acd4ec9f82ae Reviewed-by: Jarek Kobus --- tests/downloadspeed/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/downloadspeed/main.cpp b/tests/downloadspeed/main.cpp index ff741c421..d510eb0fa 100644 --- a/tests/downloadspeed/main.cpp +++ b/tests/downloadspeed/main.cpp @@ -1,6 +1,6 @@ /************************************************************************** ** -** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). +** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the Qt Installer Framework. @@ -126,7 +126,7 @@ public slots: } private: - volatile bool m_downloadFinished; + bool m_downloadFinished; }; -- cgit v1.2.3