QtCore: use new qEnvironmentVariableIs{Set,Empty}()
authorMarc Mutz <marc.mutz@kdab.com>
Mon, 6 Aug 2012 22:10:11 +0000 (00:10 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 14 Aug 2012 18:21:06 +0000 (20:21 +0200)
commit0bd21a8111f3ec3a515f4c9d1587e6770f229275
tree72ea05b06b988d87634287ef71e3e0c8b94da616
parent11b5825fa08f386d3475fa181d8d3b8738e9cd12
QtCore: use new qEnvironmentVariableIs{Set,Empty}()

In particular, qEmergencyOut() is now completely exception-free.

Incidentally, this patch shows that Qt isn't consistent in how it
treats empty environment variables used as flags, but that is something
for a separate commit. This patch aims to be behaviour-preserving,
except in exceptional circumstances, of course.

Change-Id: Ie106e7b430e1ab086c40c81cc1e56cd0e5400cb4
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/global/qlogging.cpp
src/corelib/kernel/qcoreapplication.cpp
src/corelib/kernel/qeventdispatcher_glib.cpp
src/corelib/mimetypes/qmimeprovider.cpp
src/corelib/thread/qthread_unix.cpp
src/platformsupport/eventdispatchers/qgenericunixeventdispatcher.cpp