Use QBasicMutex instead of Q_GLOBAL_STATIC QMutex
authorOlivier Goffart <ogoffart@woboq.com>
Sun, 29 Jan 2012 19:32:22 +0000 (20:32 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 1 Feb 2012 21:23:55 +0000 (22:23 +0100)
commitb69bb01f11f5104d8e807c7a2bdc92d3ffa394b4
tree1f363f3922a4e51287bd0e6eac1b1f14ff2ba3b1
parentc094891db377d750c0e8290b98971b69161a0552
Use QBasicMutex instead of Q_GLOBAL_STATIC QMutex

QBasicMutex is a POD and can be used as a static global object.

in qpicture.cpp factoryLoader is used only once, and under the mutex, so
there is no need for Q_GLOBAL_STATIC for it, it can be a function static

in qhostinfo_unix.cpp the code seemed wrong while compiled with
namespace and QT_NO_GETADDRINFO.  I also could get rid of one include
because it was included earlier.

Change-Id: I3c700203c3e067266c20733f4bda8031446dbb86
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
src/corelib/io/qprocess_unix.cpp
src/corelib/io/qsettings.cpp
src/corelib/plugin/qlibrary.cpp
src/corelib/thread/qthreadstorage.cpp
src/corelib/tools/qregexp.cpp
src/gui/image/qpicture.cpp
src/gui/kernel/qguiapplication.cpp
src/gui/kernel/qtouchdevice.cpp
src/network/bearer/qnetworkconfigmanager.cpp
src/network/kernel/qhostinfo_unix.cpp
src/network/kernel/qhostinfo_win.cpp