Skip to content

Commit 00abb9d

Browse files
committed
refactor: Fix readability-redundant-member-init warning
1 parent db4d5dc commit 00abb9d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+31
-85
lines changed

.clang-tidy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Checks: >
4444
modernize-use-using,
4545
readability-use-std-min-max,
4646
readability-use-anyofallof,
47+
readability-redundant-member-init,
4748
4849
CheckOptions:
4950
- key: readability-identifier-naming.ClassCase

src/core/fsd/addatc.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
namespace swift::core::fsd
1010
{
11-
AddAtc::AddAtc() : MessageBase() {}
12-
1311
AddAtc::AddAtc(const QString &callsign, const QString &realName, const QString &cid, const QString &password,
1412
AtcRating rating, int protocolRevision)
1513
: MessageBase(callsign, "SERVER"), m_cid(cid), m_password(password), m_rating(rating),

src/core/fsd/addatc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ namespace swift::core::fsd
4747
QString realName() const { return m_realName; }
4848

4949
private:
50-
AddAtc();
50+
AddAtc() = default;
5151

5252
QString m_cid;
5353
QString m_password;

src/core/fsd/addpilot.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ namespace swift::core::fsd
5050
static QString pdu() { return "#AP"; }
5151

5252
private:
53-
AddPilot() : MessageBase() {}
53+
AddPilot() = default;
5454

5555
QString m_cid;
5656
QString m_password;

src/core/fsd/atcdataupdate.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ using namespace swift::misc::network;
1111

1212
namespace swift::core::fsd
1313
{
14-
AtcDataUpdate::AtcDataUpdate() : MessageBase() {}
15-
1614
AtcDataUpdate::AtcDataUpdate(const QString &sender, int frequencykHz, CFacilityType facility, int visibleRange,
1715
AtcRating rating, double latitude, double longitude, int elevation)
1816
: MessageBase(sender, {}), m_frequencykHz(frequencykHz), m_facility(facility), m_visibleRange(visibleRange),

src/core/fsd/atcdataupdate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace swift::core::fsd
4646

4747
private:
4848
//! Ctor
49-
AtcDataUpdate();
49+
AtcDataUpdate() = default;
5050
};
5151

5252
//! Equal to operator

src/core/fsd/authchallenge.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
namespace swift::core::fsd
99
{
10-
AuthChallenge::AuthChallenge() : MessageBase() {}
11-
1210
AuthChallenge::AuthChallenge(const QString &sender, const QString &target, const QString &challengeKey)
1311
: MessageBase(sender, target), m_challengeKey(challengeKey)
1412
{}

src/core/fsd/authchallenge.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace swift::core::fsd
3030

3131
private:
3232
//! Ctor
33-
AuthChallenge();
33+
AuthChallenge() = default;
3434
};
3535

3636
//! Equal to operator

src/core/fsd/authresponse.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
namespace swift::core::fsd
99
{
10-
AuthResponse::AuthResponse() : MessageBase() {}
11-
1210
AuthResponse::AuthResponse(const QString &sender, const QString &receiver, const QString &response)
1311
: MessageBase(sender, receiver), m_response(response)
1412
{}

src/core/fsd/authresponse.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace swift::core::fsd
3030
QString m_response; //!< response
3131

3232
private:
33-
AuthResponse();
33+
AuthResponse() = default;
3434
};
3535

3636
//! Equal to operator

0 commit comments

Comments
 (0)