SSL: remove unneeded volatile qualifications

These two variables are only ever accessed under mutex protection,
and don't otherwise look like they could be changed by the hardware,
so remove the volatile qualifier.

Change-Id: I714451bb3e80778b971a901d53fe13e1b01dd84f
Reviewed-by: Richard J. Moore <rich@kde.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Marc Mutz 2012-08-24 09:30:23 +02:00 committed by Qt by Nokia
parent e8963749a7
commit 7e21ba6845

View File

@ -558,8 +558,8 @@ static QPair<QLibrary*, QLibrary*> loadOpenSsl()
bool q_resolveOpenSslSymbols()
{
static volatile bool symbolsResolved = false;
static volatile bool triedToResolveSymbols = false;
static bool symbolsResolved = false;
static bool triedToResolveSymbols = false;
#ifndef QT_NO_THREAD
QMutexLocker locker(QMutexPool::globalInstanceGet((void *)&q_SSL_library_init));
#endif