summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/global/qgetputenv/.gitignore
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2014-09-07 21:11:55 +0200
committerMarc Mutz <marc.mutz@kdab.com>2014-09-12 09:57:16 +0200
commitbb56586e32677ee9be23bffa4f3cc9a913ef192f (patch)
tree2de11368ac0a32a244b943dbf29ad38e8e8c3a43 /tests/auto/corelib/global/qgetputenv/.gitignore
parent6be26d90517bcbae252689679371cd4c7b7bbe3e (diff)
Add qEnvironmentVariableIntValue()
A lot of code in Qt uses VAR=1 for enabling or disabling some feature or other, ignoring qEnvironmentVariableIsSet(), which was added for that purpose. Other code actually reads numerical values from environment variables. For both use-cases, provide a non-throwing, non-memory-allocating way to get the numerical (int) value of an environment variable, complementing qEnvironmentVariableIs{Set,Empty}(). [ChangeLog][QtCore] Added qEnvironmentVariableIntValue(). Change-Id: I81c85287ea10d355c1bbf8d7807ec9a0e477bce0 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/global/qgetputenv/.gitignore')
0 files changed, 0 insertions, 0 deletions