Replace typedef with using
This commit is contained in:
@@ -69,7 +69,7 @@ class ShuffleItems;
|
||||
class SortItems;
|
||||
} // namespace PlaylistUndoCommands
|
||||
|
||||
typedef QMap<int, Qt::Alignment> ColumnAlignmentMap;
|
||||
using ColumnAlignmentMap = QMap<int, Qt::Alignment>;
|
||||
Q_DECLARE_METATYPE(Qt::Alignment)
|
||||
Q_DECLARE_METATYPE(ColumnAlignmentMap)
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ class PlaylistBackend : public QObject {
|
||||
QString dynamic_backend;
|
||||
QByteArray dynamic_data;
|
||||
};
|
||||
typedef QList<Playlist> PlaylistList;
|
||||
using PlaylistList = QList<Playlist>;
|
||||
|
||||
static const int kSongTableJoins;
|
||||
|
||||
|
||||
@@ -131,8 +131,8 @@ class PlaylistItem : public std::enable_shared_from_this<PlaylistItem> {
|
||||
|
||||
Q_DISABLE_COPY(PlaylistItem)
|
||||
};
|
||||
typedef std::shared_ptr<PlaylistItem> PlaylistItemPtr;
|
||||
typedef QList<PlaylistItemPtr> PlaylistItemList;
|
||||
using PlaylistItemPtr = std::shared_ptr<PlaylistItem>;
|
||||
using PlaylistItemList = QList<PlaylistItemPtr>;
|
||||
|
||||
Q_DECLARE_METATYPE(PlaylistItemPtr)
|
||||
Q_DECLARE_METATYPE(PlaylistItemList)
|
||||
|
||||
Reference in New Issue
Block a user