diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2022-05-17 11:47:01 +0200 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2023-07-09 17:20:40 +0200 |
| commit | d13f6bb870cdda71257f665367be8ef9fca86255 (patch) | |
| tree | 52e214718478f1e52856572f5aa1a2ac58537f9f /src/envwindows.h | |
| parent | 86bb01ba9eac879d3685c439ac9da0028bc4bc80 (diff) | |
Apply clang-format.
Diffstat (limited to 'src/envwindows.h')
| -rw-r--r-- | src/envwindows.h | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/src/envwindows.h b/src/envwindows.h index 61ef609d..7076bcc2 100644 --- a/src/envwindows.h +++ b/src/envwindows.h @@ -14,7 +14,7 @@ class WindowsInfo public: struct Version { - DWORD major=0, minor=0, build=0; + DWORD major = 0, minor = 0, build = 0; QString toString() const { @@ -23,16 +23,10 @@ public: friend bool operator==(const Version& a, const Version& b) { - return - a.major == b.major && - a.minor == b.minor && - a.build == b.build; + return a.major == b.major && a.minor == b.minor && a.build == b.build; } - friend bool operator!=(const Version& a, const Version& b) - { - return !(a == b); - } + friend bool operator!=(const Version& a, const Version& b) { return !(a == b); } }; struct Release @@ -46,13 +40,9 @@ public: // some sub-build number, undocumented, may be empty DWORD UBR; - Release() - : UBR(0) - { - } + Release() : UBR(0) {} }; - WindowsInfo(); // tries to guess whether this process is running in compatibility mode @@ -102,6 +92,6 @@ private: std::optional<bool> getElevated() const; }; -} // namespace +} // namespace env -#endif // ENV_WINDOWS_H +#endif // ENV_WINDOWS_H |
