From 1d4bf6e8b1208383021e22f61d859e9b721c482d Mon Sep 17 00:00:00 2001 From: Mehmet Samet Duman Date: Thu, 2 Apr 2026 17:36:40 +0300 Subject: NOISSUE reformat MeshMC to new clang format rules and fixed macOS portability issue and java find issue Signed-off-by: Mehmet Samet Duman --- launcher/java/JavaVersion.h | 67 +++++++++++++++++++++++---------------------- 1 file changed, 35 insertions(+), 32 deletions(-) (limited to 'launcher/java/JavaVersion.h') diff --git a/launcher/java/JavaVersion.h b/launcher/java/JavaVersion.h index 5c4ce06ec9..18ab256edb 100644 --- a/launcher/java/JavaVersion.h +++ b/launcher/java/JavaVersion.h @@ -23,48 +23,51 @@ #include -// NOTE: apparently the GNU C library pollutes the global namespace with these... undef them. +// NOTE: apparently the GNU C library pollutes the global namespace with +// these... undef them. #ifdef major - #undef major +#undef major #endif #ifdef minor - #undef minor +#undef minor #endif class JavaVersion { - friend class JavaVersionTest; -public: - JavaVersion() {}; - JavaVersion(const QString & rhs); + friend class JavaVersionTest; - JavaVersion & operator=(const QString & rhs); + public: + JavaVersion() {}; + JavaVersion(const QString& rhs); - bool operator<(const JavaVersion & rhs) const; - bool operator==(const JavaVersion & rhs) const; - bool operator>(const JavaVersion & rhs) const; + JavaVersion& operator=(const QString& rhs); - bool requiresPermGen(); + bool operator<(const JavaVersion& rhs) const; + bool operator==(const JavaVersion& rhs) const; + bool operator>(const JavaVersion& rhs) const; - QString toString(); + bool requiresPermGen() const; - int major() - { - return m_major; - } - int minor() - { - return m_minor; - } - int security() - { - return m_security; - } -private: - QString m_string; - int m_major = 0; - int m_minor = 0; - int m_security = 0; - bool m_parseable = false; - QString m_prerelease; + QString toString() const; + + int major() const + { + return m_major; + } + int minor() const + { + return m_minor; + } + int security() const + { + return m_security; + } + + private: + QString m_string; + int m_major = 0; + int m_minor = 0; + int m_security = 0; + bool m_parseable = false; + QString m_prerelease; }; -- cgit 0.0.5-2-1-g0f52