diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2014-09-07 21:44:19 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2014-10-06 20:39:16 +0200 |
commit | 10e3ce9e169d9c38c9cfd15a8729fa091694bf60 (patch) | |
tree | 3159ad98e6a764158f2697bdf77174f67284a983 /src/corelib/tools/qdatetime.h | |
parent | d8838ee1269f19b8bd96d7e68db1c5befbdf9127 (diff) |
QWidget: simplify reading of an env-var in create()
Instead of initializing paintOnScreenEnv to -1 (thus forcing the
variable into the data segment), and then overwriting the -1 with
a read from the env-var, dynamically initialize the variable from
the env-var directly, thus allowing the variable back into the bss
segment (which doesn't occupy storage in the executable).
There may have been a reason to do it this way when the old code
could fail due to the memory allocation involved, but now with
qEnvironmentVariableIntValue(), that is no longer a reason.
Change-Id: I6547a81f69b0b57dc49bb4dd3ba1865ce8ac5b86
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/corelib/tools/qdatetime.h')
0 files changed, 0 insertions, 0 deletions