Skip to content

Commit 85c23b2

Browse files
committed
chore: reformat
Signed-off-by: Sefa Eyeoglu <[email protected]>
1 parent 095de5e commit 85c23b2

File tree

6 files changed

+12
-42
lines changed

6 files changed

+12
-42
lines changed

launcher/Version.h

+4-16
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,8 @@ class Version {
103103

104104
QString m_fullString;
105105

106-
[[nodiscard]] inline bool isAppendix() const
107-
{
108-
return m_stringPart.startsWith('+');
109-
}
110-
[[nodiscard]] inline bool isPreRelease() const
111-
{
112-
return m_stringPart.startsWith('-') && m_stringPart.length() > 1;
113-
}
106+
[[nodiscard]] inline bool isAppendix() const { return m_stringPart.startsWith('+'); }
107+
[[nodiscard]] inline bool isPreRelease() const { return m_stringPart.startsWith('-') && m_stringPart.length() > 1; }
114108

115109
inline bool operator==(const Section& other) const
116110
{
@@ -156,14 +150,8 @@ class Version {
156150
return m_fullString < other.m_fullString;
157151
}
158152

159-
inline bool operator!=(const Section& other) const
160-
{
161-
return !(*this == other);
162-
}
163-
inline bool operator>(const Section& other) const
164-
{
165-
return !(*this < other || *this == other);
166-
}
153+
inline bool operator!=(const Section& other) const { return !(*this == other); }
154+
inline bool operator>(const Section& other) const { return !(*this < other || *this == other); }
167155
};
168156

169157
private:

launcher/launch/LogModel.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class LogModel : public QAbstractListModel {
3030

3131
enum Roles { LevelRole = Qt::UserRole };
3232

33-
private /* types */:
33+
private /* types */:
3434
struct entry {
3535
MessageLevel::Enum level;
3636
QString line;

launcher/ui/MainWindow.h

+1-4
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,7 @@ class MainWindow : public QMainWindow {
151151
void deleteGroup();
152152
void undoTrashInstance();
153153

154-
inline void on_actionExportInstance_triggered()
155-
{
156-
on_actionExportInstanceZip_triggered();
157-
}
154+
inline void on_actionExportInstance_triggered() { on_actionExportInstanceZip_triggered(); }
158155
void on_actionExportInstanceZip_triggered();
159156
void on_actionExportInstanceMrPack_triggered();
160157
void on_actionExportInstanceFlamePack_triggered();

launcher/ui/pages/instance/ServersPage.cpp

+4-16
Original file line numberDiff line numberDiff line change
@@ -354,14 +354,8 @@ class ServersModel : public QAbstractListModel {
354354
}
355355
}
356356

357-
virtual int rowCount(const QModelIndex& parent = QModelIndex()) const override
358-
{
359-
return parent.isValid() ? 0 : m_servers.size();
360-
}
361-
int columnCount(const QModelIndex& parent) const override
362-
{
363-
return parent.isValid() ? 0 : COLUMN_COUNT;
364-
}
357+
virtual int rowCount(const QModelIndex& parent = QModelIndex()) const override { return parent.isValid() ? 0 : m_servers.size(); }
358+
int columnCount(const QModelIndex& parent) const override { return parent.isValid() ? 0 : COLUMN_COUNT; }
365359

366360
Server* at(int index)
367361
{
@@ -445,10 +439,7 @@ class ServersModel : public QAbstractListModel {
445439
qDebug() << "Changed:" << path;
446440
load();
447441
}
448-
void fileChanged(const QString& path)
449-
{
450-
qDebug() << "Changed:" << path;
451-
}
442+
void fileChanged(const QString& path) { qDebug() << "Changed:" << path; }
452443

453444
private slots:
454445
void save_internal()
@@ -492,10 +483,7 @@ class ServersModel : public QAbstractListModel {
492483
m_saveTimer.stop();
493484
}
494485

495-
bool saveIsScheduled() const
496-
{
497-
return m_dirty;
498-
}
486+
bool saveIsScheduled() const { return m_dirty; }
499487

500488
void updateFSObserver()
501489
{

libraries/LocalPeer/src/LocalPeer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,5 +220,5 @@ void LocalPeer::receiveConnection()
220220
socket->waitForBytesWritten(1000);
221221
socket->waitForDisconnected(1000); // make sure client reads ack
222222
delete socket;
223-
emit messageReceived(uMsg); //### (might take a long time to return)
223+
emit messageReceived(uMsg); // ### (might take a long time to return)
224224
}

tests/FileSystem_test.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -353,10 +353,7 @@ class FileSystemTest : public QObject {
353353
}
354354
}
355355

356-
void test_getDesktop()
357-
{
358-
QCOMPARE(FS::getDesktopDir(), QStandardPaths::writableLocation(QStandardPaths::DesktopLocation));
359-
}
356+
void test_getDesktop() { QCOMPARE(FS::getDesktopDir(), QStandardPaths::writableLocation(QStandardPaths::DesktopLocation)); }
360357

361358
void test_link()
362359
{

0 commit comments

Comments
 (0)