Fix compiler warnings

- private field 'm_postId' is not used
- private field 'm_hostChecked' is not used
- missing field 'AcrossEmptyLines' initializer

Change-Id: I1e31c79e078bcb68d053202ad322299b92c4fa38
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Eike Ziller
2022-10-12 10:39:03 +02:00
parent 991cd54639
commit 6becc304b8
2 changed files with 2 additions and 4 deletions

View File

@@ -34,8 +34,8 @@ clang::format::FormatStyle qtcStyle()
style.AccessModifierOffset = -4;
style.AlignAfterOpenBracket = FormatStyle::BAS_Align;
#if LLVM_VERSION_MAJOR >= 15
style.AlignConsecutiveAssignments = {false};
style.AlignConsecutiveDeclarations = {false};
style.AlignConsecutiveAssignments = {false, false, false, false, false};
style.AlignConsecutiveDeclarations = {false, false, false, false, false};
#elif LLVM_VERSION_MAJOR >= 12
style.AlignConsecutiveAssignments = FormatStyle::ACS_None;
style.AlignConsecutiveDeclarations = FormatStyle::ACS_None;

View File

@@ -34,8 +34,6 @@ private:
QNetworkReply *m_listReply = nullptr;
QString m_fetchId;
int m_postId = -1;
bool m_hostChecked = false;
};
} // CodePaster