Replace typedef with using
This commit is contained in:
@@ -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>)
|
||||
|
||||
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user