diff --git a/app/actionmanager.cpp b/app/actionmanager.cpp index f8b44ff..ae028fc 100644 --- a/app/actionmanager.cpp +++ b/app/actionmanager.cpp @@ -16,16 +16,6 @@ #define ACTION_NAME(s) QStringLiteral(STRIFY(s)) #define STRIFY(s) #s -ActionManager::ActionManager() -{ - -} - -ActionManager::~ActionManager() -{ - -} - QIcon ActionManager::loadHidpiIcon(const QString &resp, QSize sz) { QSvgRenderer r(resp); diff --git a/app/actionmanager.h b/app/actionmanager.h index 314b107..3c42408 100644 --- a/app/actionmanager.h +++ b/app/actionmanager.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Gary Wang +// SPDX-FileCopyrightText: 2025 Gary Wang // // SPDX-License-Identifier: MIT @@ -12,8 +12,8 @@ class MainWindow; class ActionManager { public: - ActionManager(); - ~ActionManager(); + explicit ActionManager() = default; + ~ActionManager() = default; void setupAction(MainWindow * mainWindow); void retranslateUi(MainWindow *MainWindow); diff --git a/app/playlistmanager.h b/app/playlistmanager.h index 0314987..2339409 100644 --- a/app/playlistmanager.h +++ b/app/playlistmanager.h @@ -62,12 +62,12 @@ public: Q_INVOKABLE QModelIndex loadPlaylist(const QList & urls); Q_INVOKABLE QModelIndex loadPlaylist(const QUrl & url); - inline int totalCount() const; + int totalCount() const; QModelIndex previousIndex() const; QModelIndex nextIndex() const; QModelIndex curIndex() const; - inline bool isFirstIndex() const; - inline bool isLastIndex() const; + bool isFirstIndex() const; + bool isLastIndex() const; void setCurrentIndex(const QModelIndex & index); QUrl urlByIndex(const QModelIndex & index); QString localFileByIndex(const QModelIndex & index); diff --git a/app/shortcutedit.cpp b/app/shortcutedit.cpp index 20486e2..10e3e77 100644 --- a/app/shortcutedit.cpp +++ b/app/shortcutedit.cpp @@ -40,11 +40,6 @@ ShortcutEditor::ShortcutEditor(ShortcutEdit * shortcutEdit, QWidget * parent) reloadShortcuts(); } -ShortcutEditor::~ShortcutEditor() -{ - -} - void ShortcutEditor::setDescription(const QString &desc) { m_descriptionLabel->setText(desc); diff --git a/app/shortcutedit.h b/app/shortcutedit.h index 1b70cf4..997a33c 100644 --- a/app/shortcutedit.h +++ b/app/shortcutedit.h @@ -18,7 +18,7 @@ class ShortcutEditor : public QWidget Q_OBJECT public: explicit ShortcutEditor(ShortcutEdit * shortcutEdit, QWidget * parent = nullptr); - ~ShortcutEditor(); + ~ShortcutEditor() = default; void setDescription(const QString & desc);