Skip to content

Commit 4dad447

Browse files
committed
docs: remove }; in headers + typo fixes
}; breaks the docgen regex
1 parent 3bbf39c commit 4dad447

File tree

14 files changed

+79
-79
lines changed

14 files changed

+79
-79
lines changed

src/core/desktopentry.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ class DesktopEntries: public QObject {
195195
/// While this function requires an exact match, @@heuristicLookup() will correctly
196196
/// find an entry more often and is generally more useful.
197197
Q_INVOKABLE [[nodiscard]] static DesktopEntry* byId(const QString& id);
198-
/// Look up a desktop entry by name using heuristics. Unline @@byId(),
198+
/// Look up a desktop entry by name using heuristics. Unlike @@byId(),
199199
/// if no exact matches are found this function will try to guess - potentially incorrectly.
200200
/// May return null.
201201
Q_INVOKABLE [[nodiscard]] static DesktopEntry* heuristicLookup(const QString& name);

src/core/model.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class UntypedObjectModel: public QAbstractListModel {
5353
[[nodiscard]] QVariant data(const QModelIndex& index, qint32 role) const override;
5454
[[nodiscard]] QHash<int, QByteArray> roleNames() const override;
5555

56-
[[nodiscard]] QList<QObject*> values() const { return this->valuesList; };
56+
[[nodiscard]] QList<QObject*> values() const { return this->valuesList; }
5757
void removeAt(qsizetype index);
5858

5959
Q_INVOKABLE qsizetype indexOf(QObject* object);

src/core/qsmenu.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class QsMenuHandle: public QObject {
4646
public:
4747
explicit QsMenuHandle(QObject* parent): QObject(parent) {}
4848

49-
virtual void refHandle() {};
50-
virtual void unrefHandle() {};
49+
virtual void refHandle() {}
50+
virtual void unrefHandle() {}
5151

5252
[[nodiscard]] virtual QsMenuEntry* menu() = 0;
5353

src/core/reload.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Reloadable
5757

5858
void reload(QObject* oldInstance = nullptr);
5959

60-
void classBegin() override {};
60+
void classBegin() override {}
6161
void componentComplete() override;
6262

6363
// Reload objects in the parent->child graph recursively.

src/dbus/properties.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ class DBusBindableProperty: public DBusPropertyCore {
168168
public:
169169
explicit DBusBindableProperty() { this->group()->attachProperty(this); }
170170

171-
[[nodiscard]] QString name() const override { return Name; };
172-
[[nodiscard]] QStringView nameRef() const override { return Name; };
173-
[[nodiscard]] bool isRequired() const override { return required; };
171+
[[nodiscard]] QString name() const override { return Name; }
172+
[[nodiscard]] QStringView nameRef() const override { return Name; }
173+
[[nodiscard]] bool isRequired() const override { return required; }
174174

175175
[[nodiscard]] QString valueString() override {
176176
QString str;

src/io/datastream.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ class DataStreamParser: public QObject {
5555

5656
// the buffer will be sent in both slots if there is data remaining from a previous parser
5757
virtual void parseBytes(QByteArray& incoming, QByteArray& buffer) = 0;
58-
virtual void streamEnded(QByteArray& /*buffer*/) {};
58+
virtual void streamEnded(QByteArray& /*buffer*/) {}
5959

6060
signals:
6161
/// Emitted when data is read from the stream.
6262
void read(QString data);
6363
};
6464

6565
///! DataStreamParser for delimited data streams.
66-
/// DataStreamParser for delimited data streams. @@read() is emitted once per delimited chunk of the stream.
66+
/// DataStreamParser for delimited data streams. @@DataStreamParser.read(s) is emitted once per delimited chunk of the stream.
6767
class SplitParser: public DataStreamParser {
6868
Q_OBJECT;
6969
/// The delimiter for parsed data. May be multiple characters. Defaults to `\n`.

src/io/ipchandler.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class IpcHandler: public PostReloadHook {
164164
QML_ELEMENT;
165165

166166
public:
167-
explicit IpcHandler(QObject* parent = nullptr): PostReloadHook(parent) {};
167+
explicit IpcHandler(QObject* parent = nullptr): PostReloadHook(parent) {}
168168
~IpcHandler() override;
169169
Q_DISABLE_COPY_MOVE(IpcHandler);
170170

src/services/mpris/player.hpp

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -274,23 +274,23 @@ class MprisPlayer: public QObject {
274274
[[nodiscard]] bool isValid() const;
275275
[[nodiscard]] QString address() const;
276276

277-
[[nodiscard]] QBindable<bool> bindableCanControl() const { return &this->bCanControl; };
278-
[[nodiscard]] QBindable<bool> bindableCanSeek() const { return &this->bCanSeek; };
279-
[[nodiscard]] QBindable<bool> bindableCanGoNext() const { return &this->bCanGoNext; };
280-
[[nodiscard]] QBindable<bool> bindableCanGoPrevious() const { return &this->bCanGoPrevious; };
281-
[[nodiscard]] QBindable<bool> bindableCanPlay() const { return &this->bCanPlay; };
282-
[[nodiscard]] QBindable<bool> bindableCanPause() const { return &this->bCanPause; };
277+
[[nodiscard]] QBindable<bool> bindableCanControl() const { return &this->bCanControl; }
278+
[[nodiscard]] QBindable<bool> bindableCanSeek() const { return &this->bCanSeek; }
279+
[[nodiscard]] QBindable<bool> bindableCanGoNext() const { return &this->bCanGoNext; }
280+
[[nodiscard]] QBindable<bool> bindableCanGoPrevious() const { return &this->bCanGoPrevious; }
281+
[[nodiscard]] QBindable<bool> bindableCanPlay() const { return &this->bCanPlay; }
282+
[[nodiscard]] QBindable<bool> bindableCanPause() const { return &this->bCanPause; }
283283
[[nodiscard]] QBindable<bool> bindableCanTogglePlaying() const {
284284
return &this->bCanTogglePlaying;
285-
};
286-
[[nodiscard]] QBindable<bool> bindableCanQuit() const { return &this->bCanQuit; };
287-
[[nodiscard]] QBindable<bool> bindableCanRaise() const { return &this->bCanRaise; };
285+
}
286+
[[nodiscard]] QBindable<bool> bindableCanQuit() const { return &this->bCanQuit; }
287+
[[nodiscard]] QBindable<bool> bindableCanRaise() const { return &this->bCanRaise; }
288288
[[nodiscard]] QBindable<bool> bindableCanSetFullscreen() const {
289289
return &this->bCanSetFullscreen;
290-
};
290+
}
291291

292-
[[nodiscard]] QBindable<QString> bindableIdentity() const { return &this->bIdentity; };
293-
[[nodiscard]] QBindable<QString> bindableDesktopEntry() const { return &this->bDesktopEntry; };
292+
[[nodiscard]] QBindable<QString> bindableIdentity() const { return &this->bIdentity; }
293+
[[nodiscard]] QBindable<QString> bindableDesktopEntry() const { return &this->bDesktopEntry; }
294294

295295
[[nodiscard]] qlonglong positionMs() const;
296296
[[nodiscard]] qreal position() const;
@@ -300,49 +300,49 @@ class MprisPlayer: public QObject {
300300
[[nodiscard]] qreal length() const;
301301
[[nodiscard]] QBindable<bool> bindableLengthSupported() const { return &this->bLengthSupported; }
302302

303-
[[nodiscard]] qreal volume() const { return this->bVolume; };
303+
[[nodiscard]] qreal volume() const { return this->bVolume; }
304304
[[nodiscard]] bool volumeSupported() const;
305305
void setVolume(qreal volume);
306306

307-
[[nodiscard]] QBindable<quint32> bindableUniqueId() const { return &this->bUniqueId; };
308-
[[nodiscard]] QBindable<QVariantMap> bindableMetadata() const { return &this->bMetadata; };
309-
[[nodiscard]] QBindable<QString> bindableTrackTitle() const { return &this->bTrackTitle; };
310-
[[nodiscard]] QBindable<QString> bindableTrackAlbum() const { return &this->bTrackAlbum; };
307+
[[nodiscard]] QBindable<quint32> bindableUniqueId() const { return &this->bUniqueId; }
308+
[[nodiscard]] QBindable<QVariantMap> bindableMetadata() const { return &this->bMetadata; }
309+
[[nodiscard]] QBindable<QString> bindableTrackTitle() const { return &this->bTrackTitle; }
310+
[[nodiscard]] QBindable<QString> bindableTrackAlbum() const { return &this->bTrackAlbum; }
311311
[[nodiscard]] QBindable<QString> bindableTrackAlbumArtist() const {
312312
return &this->bTrackAlbumArtist;
313-
};
314-
[[nodiscard]] QBindable<QString> bindableTrackArtist() const { return &this->bTrackArtist; };
315-
[[nodiscard]] QBindable<QString> bindableTrackArtUrl() const { return &this->bTrackArtUrl; };
313+
}
314+
[[nodiscard]] QBindable<QString> bindableTrackArtist() const { return &this->bTrackArtist; }
315+
[[nodiscard]] QBindable<QString> bindableTrackArtUrl() const { return &this->bTrackArtUrl; }
316316

317-
[[nodiscard]] MprisPlaybackState::Enum playbackState() const { return this->bPlaybackState; };
317+
[[nodiscard]] MprisPlaybackState::Enum playbackState() const { return this->bPlaybackState; }
318318
void setPlaybackState(MprisPlaybackState::Enum playbackState);
319319

320-
[[nodiscard]] bool isPlaying() const { return this->bIsPlaying; };
320+
[[nodiscard]] bool isPlaying() const { return this->bIsPlaying; }
321321
void setPlaying(bool playing);
322322

323-
[[nodiscard]] MprisLoopState::Enum loopState() const { return this->bLoopState; };
323+
[[nodiscard]] MprisLoopState::Enum loopState() const { return this->bLoopState; }
324324
[[nodiscard]] bool loopSupported() const;
325325
void setLoopState(MprisLoopState::Enum loopState);
326326

327-
[[nodiscard]] qreal rate() const { return this->bRate; };
328-
[[nodiscard]] QBindable<qreal> bindableMinRate() const { return &this->bRate; };
329-
[[nodiscard]] QBindable<qreal> bindableMaxRate() const { return &this->bRate; };
327+
[[nodiscard]] qreal rate() const { return this->bRate; }
328+
[[nodiscard]] QBindable<qreal> bindableMinRate() const { return &this->bRate; }
329+
[[nodiscard]] QBindable<qreal> bindableMaxRate() const { return &this->bRate; }
330330
void setRate(qreal rate);
331331

332-
[[nodiscard]] bool shuffle() const { return this->bShuffle; };
332+
[[nodiscard]] bool shuffle() const { return this->bShuffle; }
333333
[[nodiscard]] bool shuffleSupported() const;
334334
void setShuffle(bool shuffle);
335335

336-
[[nodiscard]] bool fullscreen() const { return this->bFullscreen; };
336+
[[nodiscard]] bool fullscreen() const { return this->bFullscreen; }
337337
void setFullscreen(bool fullscreen);
338338

339339
[[nodiscard]] QBindable<QList<QString>> bindableSupportedUriSchemes() const {
340340
return &this->bSupportedUriSchemes;
341-
};
341+
}
342342

343343
[[nodiscard]] QBindable<QList<QString>> bindableSupportedMimeTypes() const {
344344
return &this->bSupportedMimeTypes;
345-
};
345+
}
346346

347347
signals:
348348
/// The track has changed.
@@ -414,7 +414,7 @@ private slots:
414414
void onPlaybackStatusUpdated();
415415
// call instead of setting bpPosition
416416
void setPosition(qlonglong position);
417-
void requestPositionUpdate() { this->pPosition.requestUpdate(); };
417+
void requestPositionUpdate() { this->pPosition.requestUpdate(); }
418418

419419
// clang-format off
420420
Q_OBJECT_BINDABLE_PROPERTY(MprisPlayer, QString, bIdentity, &MprisPlayer::identityChanged);

src/services/mpris/watcher.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class MprisQml: public QObject {
5151
Q_PROPERTY(UntypedObjectModel* players READ players CONSTANT);
5252

5353
public:
54-
explicit MprisQml(QObject* parent = nullptr): QObject(parent) {};
54+
explicit MprisQml(QObject* parent = nullptr): QObject(parent) {}
5555

5656
[[nodiscard]] ObjectModel<MprisPlayer>* players();
5757
};

src/services/notifications/notification.hpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -154,29 +154,29 @@ class Notification
154154
[[nodiscard]] bool isLastGeneration() const;
155155
void setLastGeneration();
156156

157-
[[nodiscard]] QBindable<qreal> bindableExpireTimeout() const { return &this->bExpireTimeout; };
158-
[[nodiscard]] QBindable<QString> bindableAppName() const { return &this->bAppName; };
159-
[[nodiscard]] QBindable<QString> bindableAppIcon() const { return &this->bAppIcon; };
160-
[[nodiscard]] QBindable<QString> bindableSummary() const { return &this->bSummary; };
161-
[[nodiscard]] QBindable<QString> bindableBody() const { return &this->bBody; };
157+
[[nodiscard]] QBindable<qreal> bindableExpireTimeout() const { return &this->bExpireTimeout; }
158+
[[nodiscard]] QBindable<QString> bindableAppName() const { return &this->bAppName; }
159+
[[nodiscard]] QBindable<QString> bindableAppIcon() const { return &this->bAppIcon; }
160+
[[nodiscard]] QBindable<QString> bindableSummary() const { return &this->bSummary; }
161+
[[nodiscard]] QBindable<QString> bindableBody() const { return &this->bBody; }
162162
[[nodiscard]] QBindable<NotificationUrgency ::Enum> bindableUrgency() const {
163163
return &this->bUrgency;
164-
};
164+
}
165165

166166
[[nodiscard]] QList<NotificationAction*> actions() const;
167167

168-
[[nodiscard]] QBindable<bool> bindableHasActionIcons() const { return &this->bHasActionIcons; };
169-
[[nodiscard]] QBindable<bool> bindableResident() const { return &this->bResident; };
170-
[[nodiscard]] QBindable<bool> bindableTransient() const { return &this->bTransient; };
171-
[[nodiscard]] QBindable<QString> bindableDesktopEntry() const { return &this->bDesktopEntry; };
172-
[[nodiscard]] QBindable<QString> bindableImage() const { return &this->bImage; };
173-
[[nodiscard]] QBindable<bool> bindableHasInlineReply() const { return &this->bHasInlineReply; };
168+
[[nodiscard]] QBindable<bool> bindableHasActionIcons() const { return &this->bHasActionIcons; }
169+
[[nodiscard]] QBindable<bool> bindableResident() const { return &this->bResident; }
170+
[[nodiscard]] QBindable<bool> bindableTransient() const { return &this->bTransient; }
171+
[[nodiscard]] QBindable<QString> bindableDesktopEntry() const { return &this->bDesktopEntry; }
172+
[[nodiscard]] QBindable<QString> bindableImage() const { return &this->bImage; }
173+
[[nodiscard]] QBindable<bool> bindableHasInlineReply() const { return &this->bHasInlineReply; }
174174

175175
[[nodiscard]] QBindable<QString> bindableInlineReplyPlaceholder() const {
176176
return &this->bInlineReplyPlaceholder;
177-
};
177+
}
178178

179-
[[nodiscard]] QBindable<QVariantMap> bindableHints() const { return &this->bHints; };
179+
[[nodiscard]] QBindable<QVariantMap> bindableHints() const { return &this->bHints; }
180180

181181
[[nodiscard]] NotificationCloseReason::Enum closeReason() const;
182182
void setTracked(bool tracked);

0 commit comments

Comments
 (0)