refactor: Run clang-format on qt test_main.cpp
What changed, and why it matters
This commit only reformats a single Qt test file using clang-format. It moves preprocessor directives (#if, #else, #endif) to the start of lines and adjusts indentation. No code logic, behavior, or functionality was changed.
No security action needed. This is a style-only refactor.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff is a pure whitespace/formatting change in src/qt/test/test_main.cpp. The conditional environment variable setup for QT_QPA_PLATFORM is identical before and after; only the indentation of preprocessor lines and the body of the conditional was adjusted to match project style. There is no semantic change.
Changed components
src/qt/test/test_main.cppInspect captured patch +5 / −5
diff --git a/src/qt/test/test_main.cpp b/src/qt/test/test_main.cpp
index 5e91b072..1a0f3c7b 100644
--- a/src/qt/test/test_main.cpp
+++ b/src/qt/test/test_main.cpp
@@ -60,11 +60,11 @@ int main(int argc, char* argv[])
// Prefer the "minimal" platform for the test instead of the normal default
// platform ("xcb", "windows", or "cocoa") so tests can't unintentionally
// interfere with any background GUIs and don't require extra resources.
- #if defined(WIN32)
- if (getenv("QT_QPA_PLATFORM") == nullptr) _putenv_s("QT_QPA_PLATFORM", "minimal");
- #else
- setenv("QT_QPA_PLATFORM", "minimal", 0 /* overwrite */);
- #endif
+#if defined(WIN32)
+ if (getenv("QT_QPA_PLATFORM") == nullptr) _putenv_s("QT_QPA_PLATFORM", "minimal");
+#else
+ setenv("QT_QPA_PLATFORM", "minimal", 0 /* overwrite */);
+#endif
QCoreApplication::setOrganizationName(QAPP_ORG_NAME);
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.