Skip to content

Commit 97311ad

Browse files
committed
fix: Supress false positives
1 parent 65fb75d commit 97311ad

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

src/misc/aviation/altitude.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ namespace swift::misc::aviation
216216
// in same step get numeric value only
217217
bool beforeDigit = true;
218218
QString numericPart;
219-
for (int i = 0; i < v.length(); i++)
219+
for (int i = 0; i < v.length(); i++) // NOLINT
220220
{
221221
const QChar c = v[i];
222222
if (c.isDigit())

src/misc/aviation/selcal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace swift::misc::aviation
3939
QList<CFrequency> f;
4040
if (!CSelcal::isValidCode(m_code)) return f;
4141
f.reserve(m_code.length());
42-
for (int pos = 0; pos < m_code.length(); pos++) { f.append(CSelcal::audioFrequencyEquivalent(m_code.at(pos))); }
42+
for (const QChar c : m_code) { f.append(CSelcal::audioFrequencyEquivalent(c)); }
4343
return f;
4444
}
4545

src/misc/simulation/fscommon/bcdconversions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ namespace swift::misc
4040

4141
private:
4242
//! Constructor, only static methods
43-
CBcdConversions() {}
43+
CBcdConversions() {} // NOLINT(modernize-use-equals-default)
4444

4545
//! Horner scheme
4646
static quint32 hornerScheme(quint32 num, quint32 divider, quint32 factor);

src/misc/simulation/interpolation/interpolationsetupprovider.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ namespace swift::misc::simulation
118118

119119
protected:
120120
//! Default constructor
121-
CInterpolationSetupAware() {}
121+
CInterpolationSetupAware() {} // NOLINT(modernize-use-equals-default)
122122

123123
//! Constructor
124124
CInterpolationSetupAware(IInterpolationSetupProvider *setupProvider) : IProviderAware(setupProvider) {}

src/misc/variant.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,7 @@ namespace swift::misc
498498
bool CVariant::isA(int metaTypeId) const
499499
{
500500
if (metaTypeId == QMetaType::UnknownType) { return false; }
501-
if (metaTypeId == getMetaTypeId()) { return true; }
502-
return false;
501+
return metaTypeId == getMetaTypeId();
503502
}
504503

505504
bool CVariant::matches(const CVariant &value) const

0 commit comments

Comments
 (0)