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/JavaInstallList.h | 80 ++++++++++++++++++++--------------------- 1 file changed, 38 insertions(+), 42 deletions(-) (limited to 'launcher/java/JavaInstallList.h') diff --git a/launcher/java/JavaInstallList.h b/launcher/java/JavaInstallList.h index 62d7931b28..a889f43b96 100644 --- a/launcher/java/JavaInstallList.h +++ b/launcher/java/JavaInstallList.h @@ -17,7 +17,7 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see . - * + * * This file incorporates work covered by the following copyright and * permission notice: * @@ -53,52 +53,48 @@ class JavaListLoadTask; class JavaInstallList : public BaseVersionList { - Q_OBJECT - enum class Status - { - NotDone, - InProgress, - Done - }; -public: - explicit JavaInstallList(QObject *parent = 0); - - Task::Ptr getLoadTask() override; - bool isLoaded() override; - const BaseVersionPtr at(int i) const override; - int count() const override; - void sortVersions() override; - - QVariant data(const QModelIndex &index, int role) const override; - RoleList providesRoles() const override; - -public slots: - void updateListData(QList versions) override; - -protected: - void load(); - Task::Ptr getCurrentTask(); - -protected: - Status m_status = Status::NotDone; - shared_qobject_ptr m_loadTask; - QList m_vlist; + Q_OBJECT + enum class Status { NotDone, InProgress, Done }; + + public: + explicit JavaInstallList(QObject* parent = 0); + + Task::Ptr getLoadTask() override; + bool isLoaded() override; + const BaseVersionPtr at(int i) const override; + int count() const override; + void sortVersions() override; + + QVariant data(const QModelIndex& index, int role) const override; + RoleList providesRoles() const override; + + public slots: + void updateListData(QList versions) override; + + protected: + void load(); + Task::Ptr getCurrentTask(); + + protected: + Status m_status = Status::NotDone; + shared_qobject_ptr m_loadTask; + QList m_vlist; }; class JavaListLoadTask : public Task { - Q_OBJECT + Q_OBJECT -public: - explicit JavaListLoadTask(JavaInstallList *vlist); - virtual ~JavaListLoadTask(); + public: + explicit JavaListLoadTask(JavaInstallList* vlist); + virtual ~JavaListLoadTask(); - void executeTask() override; -public slots: - void javaCheckerFinished(); + void executeTask() override; + public slots: + void javaCheckerFinished(); -protected: - shared_qobject_ptr m_job; - JavaInstallList *m_list; - JavaInstall *m_currentRecommended; + protected: + shared_qobject_ptr m_job; + JavaInstallList* m_list; + JavaInstall* m_currentRecommended; }; -- cgit 0.0.5-2-1-g0f52