Adapt to QChar ctors being explicit in Qt6

This commit is contained in:
Volker Krause 2022-03-09 17:43:47 +01:00 committed by Vlad Zahorodnii
parent 840e6d400b
commit 1679452f41

View file

@ -864,7 +864,7 @@ void Options::reloadCompositingSettings(bool force)
}
char c = 0;
const QString s = config.readEntry("GLPreferBufferSwap", QString(Options::defaultGlPreferBufferSwap()));
const QString s = config.readEntry("GLPreferBufferSwap", QString(QLatin1Char(Options::defaultGlPreferBufferSwap())));
if (!s.isEmpty())
c = s.at(0).toLatin1();
if (c != 'a' && c != 'c' && c != 'p' && c != 'e')