QMinimalIntegration: use qEnvironmentVariableIntValue()
It doesn't allocate memory, so cannot throw and is a lot faster than qgetenv(). Change-Id: Idaad6ec1d92d9aa58d61e2d98e136f108be2bb4c Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
This commit is contained in:
parent
b3b29c2592
commit
0a94712ad5
@ -74,7 +74,7 @@ QMinimalIntegration::QMinimalIntegration(const QStringList ¶meters)
|
||||
, m_options(parseOptions(parameters))
|
||||
{
|
||||
if (qEnvironmentVariableIsSet(debugBackingStoreEnvironmentVariable)
|
||||
&& qgetenv(debugBackingStoreEnvironmentVariable).toInt() > 0) {
|
||||
&& qEnvironmentVariableIntValue(debugBackingStoreEnvironmentVariable) > 0) {
|
||||
m_options |= DebugBackingStore | EnableFonts;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user