QtGui: collapse two qgetenv() on the same variable
Store the result in a temporary QByteArray and continue working with that one. Change-Id: I24bc243f0f3dfb37d840faf7592b3383bd37c7e2 Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
bfabd0de51
commit
bd7331cb33
@ -636,7 +636,8 @@ QFontEngineFT::QFontEngineFT(const QFontDef &fd)
|
||||
#endif
|
||||
defaultFormat = Format_None;
|
||||
embeddedbitmap = false;
|
||||
cacheEnabled = qgetenv("QT_NO_FT_CACHE").isEmpty() || qgetenv("QT_NO_FT_CACHE").toInt() == 0;
|
||||
const QByteArray env = qgetenv("QT_NO_FT_CACHE");
|
||||
cacheEnabled = env.isEmpty() || env.toInt() == 0;
|
||||
m_subPixelPositionCount = 4;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user