File tree 6 files changed +12
-42
lines changed
6 files changed +12
-42
lines changed Original file line number Diff line number Diff line change @@ -103,14 +103,8 @@ class Version {
103
103
104
104
QString m_fullString;
105
105
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 ; }
114
108
115
109
inline bool operator ==(const Section& other) const
116
110
{
@@ -156,14 +150,8 @@ class Version {
156
150
return m_fullString < other.m_fullString ;
157
151
}
158
152
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); }
167
155
};
168
156
169
157
private:
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class LogModel : public QAbstractListModel {
30
30
31
31
enum Roles { LevelRole = Qt::UserRole };
32
32
33
- private /* types */ :
33
+ private /* types */ :
34
34
struct entry {
35
35
MessageLevel::Enum level;
36
36
QString line;
Original file line number Diff line number Diff line change @@ -151,10 +151,7 @@ class MainWindow : public QMainWindow {
151
151
void deleteGroup ();
152
152
void undoTrashInstance ();
153
153
154
- inline void on_actionExportInstance_triggered ()
155
- {
156
- on_actionExportInstanceZip_triggered ();
157
- }
154
+ inline void on_actionExportInstance_triggered () { on_actionExportInstanceZip_triggered (); }
158
155
void on_actionExportInstanceZip_triggered ();
159
156
void on_actionExportInstanceMrPack_triggered ();
160
157
void on_actionExportInstanceFlamePack_triggered ();
Original file line number Diff line number Diff line change @@ -354,14 +354,8 @@ class ServersModel : public QAbstractListModel {
354
354
}
355
355
}
356
356
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; }
365
359
366
360
Server* at (int index)
367
361
{
@@ -445,10 +439,7 @@ class ServersModel : public QAbstractListModel {
445
439
qDebug () << " Changed:" << path;
446
440
load ();
447
441
}
448
- void fileChanged (const QString& path)
449
- {
450
- qDebug () << " Changed:" << path;
451
- }
442
+ void fileChanged (const QString& path) { qDebug () << " Changed:" << path; }
452
443
453
444
private slots:
454
445
void save_internal ()
@@ -492,10 +483,7 @@ class ServersModel : public QAbstractListModel {
492
483
m_saveTimer.stop ();
493
484
}
494
485
495
- bool saveIsScheduled () const
496
- {
497
- return m_dirty;
498
- }
486
+ bool saveIsScheduled () const { return m_dirty; }
499
487
500
488
void updateFSObserver ()
501
489
{
Original file line number Diff line number Diff line change @@ -220,5 +220,5 @@ void LocalPeer::receiveConnection()
220
220
socket->waitForBytesWritten (1000 );
221
221
socket->waitForDisconnected (1000 ); // make sure client reads ack
222
222
delete socket;
223
- emit messageReceived (uMsg); // ### (might take a long time to return)
223
+ emit messageReceived (uMsg); // ### (might take a long time to return)
224
224
}
Original file line number Diff line number Diff line change @@ -353,10 +353,7 @@ class FileSystemTest : public QObject {
353
353
}
354
354
}
355
355
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)); }
360
357
361
358
void test_link ()
362
359
{
You can’t perform that action at this time.
0 commit comments