QEvDevTouch: use qEnvironmentVariableIntValue()
It doesn't allocate memory, so cannot throw and is a lot faster than qgetenv(). Change-Id: I64de0b2644c50469a35fdba9ecde167862975b79 Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
This commit is contained in:
parent
6d3e9be1d2
commit
6bc9e44433
@ -172,7 +172,7 @@ QEvdevTouchScreenHandler::QEvdevTouchScreenHandler(const QString &specification,
|
||||
{
|
||||
setObjectName(QLatin1String("Evdev Touch Handler"));
|
||||
|
||||
bool printDeviceInfo = qgetenv("QT_QPA_EVDEV_DEBUG").toInt();
|
||||
bool printDeviceInfo = qEnvironmentVariableIntValue("QT_QPA_EVDEV_DEBUG");
|
||||
|
||||
// only the first device argument is used for now
|
||||
QString spec = QString::fromLocal8Bit(qgetenv("QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user