Replace typedef with using
This commit is contained in:
@@ -48,8 +48,8 @@ class LastFMImport : public QObject {
|
||||
void AbortAll();
|
||||
|
||||
private:
|
||||
typedef QPair<QString, QString> Param;
|
||||
typedef QList<Param> ParamList;
|
||||
using Param = QPair<QString, QString>;
|
||||
using ParamList = QList<Param>;
|
||||
|
||||
struct GetRecentTracksRequest {
|
||||
explicit GetRecentTracksRequest(const int _page) : page(_page) {}
|
||||
|
||||
@@ -50,8 +50,8 @@ class ScrobblerCacheItem : public QObject {
|
||||
|
||||
};
|
||||
|
||||
typedef std::shared_ptr<ScrobblerCacheItem> ScrobblerCacheItemPtr;
|
||||
typedef QList<ScrobblerCacheItemPtr> ScrobblerCacheItemList;
|
||||
using ScrobblerCacheItemPtr = std::shared_ptr<ScrobblerCacheItem>;
|
||||
using ScrobblerCacheItemList = QList<ScrobblerCacheItemPtr>;
|
||||
|
||||
Q_DECLARE_METATYPE(ScrobblerCacheItemPtr)
|
||||
Q_DECLARE_METATYPE(ScrobblerCacheItemList)
|
||||
|
||||
@@ -56,9 +56,9 @@ class ScrobblerService : public QObject {
|
||||
virtual void Submitted() = 0;
|
||||
virtual bool IsSubmitted() const { return false; }
|
||||
|
||||
typedef QPair<QString, QString> Param;
|
||||
typedef QPair<QByteArray, QByteArray> EncodedParam;
|
||||
typedef QList<Param> ParamList;
|
||||
using Param = QPair<QString, QString>;
|
||||
using EncodedParam = QPair<QByteArray, QByteArray>;
|
||||
using ParamList = QList<Param>;
|
||||
|
||||
QJsonObject ExtractJsonObj(const QByteArray &data, const bool ignore_empty = false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user