Replace typedef with using

This commit is contained in:
Jonas Kvinge
2022-10-13 22:39:31 +02:00
parent 61204e8d35
commit b22320c48f
62 changed files with 90 additions and 116 deletions

View File

@@ -53,7 +53,7 @@ struct LyricsSearchResult {
QString lyrics;
float score;
};
typedef QList<LyricsSearchResult> LyricsSearchResults;
using LyricsSearchResults = QList<LyricsSearchResult>;
Q_DECLARE_METATYPE(LyricsSearchResult)
Q_DECLARE_METATYPE(QList<LyricsSearchResult>)

View File

@@ -39,9 +39,6 @@ class LyricsProvider : public QObject {
public:
explicit LyricsProvider(const QString &name, const bool enabled, const bool authentication_required, NetworkAccessManager *network, QObject *parent);
typedef QPair<QString, QString> Param;
typedef QList<Param> ParamList;
QString name() const { return name_; }
bool is_enabled() const { return enabled_; }
int order() const { return order_; }
@@ -65,6 +62,9 @@ class LyricsProvider : public QObject {
void SearchFinished(int id, LyricsSearchResults results);
protected:
using Param = QPair<QString, QString>;
using ParamList = QList<Param>;
NetworkAccessManager *network_;
QString name_;
bool enabled_;