mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Fix clang-tidy and clazy warnings
This commit is contained in:
@@ -124,7 +124,7 @@ namespace BlackSound
|
||||
}
|
||||
}
|
||||
|
||||
if (supportedDevices.empty()) { return {}; }
|
||||
if (supportedDevices.isEmpty()) { return {}; }
|
||||
|
||||
QAudioDeviceInfo deviceWithLowestLatency = supportedDevices.at(0);
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace BlackSound
|
||||
const QString &CResourceSound::getFileName() const
|
||||
{
|
||||
static const QString empty;
|
||||
return m_data ? empty : m_data->fileName;
|
||||
return m_data ? m_data->fileName : empty;
|
||||
}
|
||||
|
||||
bool CResourceSound::isSameFileName(const QString &fn) const
|
||||
|
||||
@@ -113,7 +113,7 @@ namespace BlackSound
|
||||
|
||||
QByteArray CThreadedTonePairPlayer::getAudioByTonePairs(const QList<CTonePair> &tonePairs)
|
||||
{
|
||||
Q_ASSERT(tonePairs.size() > 0);
|
||||
Q_ASSERT(!tonePairs.isEmpty());
|
||||
QByteArray finalBufferData;
|
||||
|
||||
for (const auto &tonePair : std::as_const(tonePairs))
|
||||
|
||||
Reference in New Issue
Block a user