Misc clang warning fixes

This commit is contained in:
Roland Winklmeier
2018-08-24 15:27:31 +02:00
parent 5e38936fd2
commit 84dcc53dc0
4 changed files with 4 additions and 4 deletions

View File

@@ -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();

View File

@@ -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())
{

View File

@@ -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

View File

@@ -115,7 +115,7 @@ namespace BlackMisc
};
QString weatherPhenomenaAsString;
for (const auto &wp : makeKeysRange(weatherPhenomenaHash))
for (const WeatherPhenomenon &wp : makeKeysRange(weatherPhenomenaHash))
{
if (m_weatherPhenomena & wp)
{