diff --git a/src/blackinput/linux/joysticklinux.cpp b/src/blackinput/linux/joysticklinux.cpp index 22294b29f..cdfc15363 100644 --- a/src/blackinput/linux/joysticklinux.cpp +++ b/src/blackinput/linux/joysticklinux.cpp @@ -97,7 +97,7 @@ namespace BlackInput { cleanupJoysticks(); - QDir dir(path, QLatin1String("js*"), 0, QDir::System); + QDir dir(path, QLatin1String("js*"), QDir::Name, QDir::System); for (const auto &entry : dir.entryInfoList()) { QString f = entry.absoluteFilePath(); diff --git a/src/blackinput/linux/keyboardlinux.cpp b/src/blackinput/linux/keyboardlinux.cpp index 7a8f62020..fea381ca3 100644 --- a/src/blackinput/linux/keyboardlinux.cpp +++ b/src/blackinput/linux/keyboardlinux.cpp @@ -92,7 +92,7 @@ namespace BlackInput void CKeyboardLinux::deviceDirectoryChanged(const QString &dir) { - QDir eventFiles(dir, QLatin1String("event*"), 0, QDir::System); + QDir eventFiles(dir, QLatin1String("event*"), QDir::Name, QDir::System); foreach(QFileInfo fileInfo, eventFiles.entryInfoList()) { diff --git a/src/blackmisc/thirdparty/simplecrypt.h b/src/blackmisc/thirdparty/simplecrypt.h index 756c88628..d574c6bdd 100644 --- a/src/blackmisc/thirdparty/simplecrypt.h +++ b/src/blackmisc/thirdparty/simplecrypt.h @@ -214,7 +214,7 @@ namespace BlackMisc CryptoFlagChecksum = 0x02, //!< Checksum CryptoFlagHash = 0x04 //!< Hash }; - Q_DECLARE_FLAGS(CryptoFlags, CryptoFlag); //!< For future usage + Q_DECLARE_FLAGS(CryptoFlags, CryptoFlag) //!< For future usage private: //! Split key diff --git a/src/blackmisc/weather/presentweather.cpp b/src/blackmisc/weather/presentweather.cpp index 2d66c67d6..7c3bc3bda 100644 --- a/src/blackmisc/weather/presentweather.cpp +++ b/src/blackmisc/weather/presentweather.cpp @@ -115,7 +115,7 @@ namespace BlackMisc }; QString weatherPhenomenaAsString; - for (const auto &wp : makeKeysRange(weatherPhenomenaHash)) + for (const WeatherPhenomenon &wp : makeKeysRange(weatherPhenomenaHash)) { if (m_weatherPhenomena & wp) {