mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 06:45:37 +08:00
fix: Supress false positives
This commit is contained in:
@@ -216,7 +216,7 @@ namespace swift::misc::aviation
|
||||
// in same step get numeric value only
|
||||
bool beforeDigit = true;
|
||||
QString numericPart;
|
||||
for (int i = 0; i < v.length(); i++)
|
||||
for (int i = 0; i < v.length(); i++) // NOLINT
|
||||
{
|
||||
const QChar c = v[i];
|
||||
if (c.isDigit())
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace swift::misc::aviation
|
||||
QList<CFrequency> f;
|
||||
if (!CSelcal::isValidCode(m_code)) return f;
|
||||
f.reserve(m_code.length());
|
||||
for (int pos = 0; pos < m_code.length(); pos++) { f.append(CSelcal::audioFrequencyEquivalent(m_code.at(pos))); }
|
||||
for (const QChar c : m_code) { f.append(CSelcal::audioFrequencyEquivalent(c)); }
|
||||
return f;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace swift::misc
|
||||
|
||||
private:
|
||||
//! Constructor, only static methods
|
||||
CBcdConversions() {}
|
||||
CBcdConversions() {} // NOLINT(modernize-use-equals-default)
|
||||
|
||||
//! Horner scheme
|
||||
static quint32 hornerScheme(quint32 num, quint32 divider, quint32 factor);
|
||||
|
||||
@@ -118,7 +118,7 @@ namespace swift::misc::simulation
|
||||
|
||||
protected:
|
||||
//! Default constructor
|
||||
CInterpolationSetupAware() {}
|
||||
CInterpolationSetupAware() {} // NOLINT(modernize-use-equals-default)
|
||||
|
||||
//! Constructor
|
||||
CInterpolationSetupAware(IInterpolationSetupProvider *setupProvider) : IProviderAware(setupProvider) {}
|
||||
|
||||
@@ -498,8 +498,7 @@ namespace swift::misc
|
||||
bool CVariant::isA(int metaTypeId) const
|
||||
{
|
||||
if (metaTypeId == QMetaType::UnknownType) { return false; }
|
||||
if (metaTypeId == getMetaTypeId()) { return true; }
|
||||
return false;
|
||||
return metaTypeId == getMetaTypeId();
|
||||
}
|
||||
|
||||
bool CVariant::matches(const CVariant &value) const
|
||||
|
||||
Reference in New Issue
Block a user