mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
Misc clang warning fixes
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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())
|
||||
{
|
||||
|
||||
2
src/blackmisc/thirdparty/simplecrypt.h
vendored
2
src/blackmisc/thirdparty/simplecrypt.h
vendored
@@ -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
|
||||
|
||||
@@ -115,7 +115,7 @@ namespace BlackMisc
|
||||
};
|
||||
|
||||
QString weatherPhenomenaAsString;
|
||||
for (const auto &wp : makeKeysRange(weatherPhenomenaHash))
|
||||
for (const WeatherPhenomenon &wp : makeKeysRange(weatherPhenomenaHash))
|
||||
{
|
||||
if (m_weatherPhenomena & wp)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user