Fix Clazy warnings

This commit is contained in:
Cameron Gutman 2020-02-24 17:44:21 -08:00
commit 13d68e789f
5 changed files with 18 additions and 17 deletions

View file

@ -303,7 +303,7 @@ int main(int argc, char *argv[])
}
else {
#ifndef STEAM_LINK
if (qgetenv("QT_QPA_PLATFORM").isEmpty()) {
if (!qEnvironmentVariableIsSet("QT_QPA_PLATFORM")) {
qInfo() << "Unable to detect Wayland or X11, so EGLFS will be used by default. Set QT_QPA_PLATFORM to override this.";
qputenv("QT_QPA_PLATFORM", "eglfs");