summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2012-08-03 12:46:15 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-09 21:27:09 +0200
commitfa08b143f3deb1db11984a88aa34d541c19c9fc5 (patch)
treeabbe3ff4f15f148d97edf6bd13eed79a4294d318 /tests/benchmarks
parent977441f61cc42b7f29e48980577105323fbd3b47 (diff)
QtGlobal: (new) qEnvironmentVariableIs{Set,Empty}()
These functions are a faster version of {,!}qgetenv().is{Null,Empty}(), a common pattern in Qt code. Their main advantage is that they don't need to allocate memory, so they can be used in noexcept functions, or dynamic initialisation of namespace-scope statics, because throwing in these contexts invokes std::terminate(). Change-Id: I651c5bd72f450b5d7df76590f8791572fe992af5 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/benchmarks')
0 files changed, 0 insertions, 0 deletions