Replace typedef with using
This commit is contained in:
@@ -27,6 +27,6 @@
|
||||
|
||||
class PlaylistGenerator;
|
||||
|
||||
typedef std::shared_ptr<PlaylistGenerator> PlaylistGeneratorPtr;
|
||||
using PlaylistGeneratorPtr = std::shared_ptr<PlaylistGenerator>;
|
||||
|
||||
#endif // PLAYLISTGENERATOR_FWD_H
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
class SmartPlaylistSearch {
|
||||
|
||||
public:
|
||||
typedef QList<SmartPlaylistSearchTerm> TermList;
|
||||
using TermList = QList<SmartPlaylistSearchTerm>;
|
||||
|
||||
// These values are persisted, so add to the end of the enum only
|
||||
enum SearchType { Type_And = 0, Type_Or, Type_All, };
|
||||
|
||||
@@ -134,7 +134,7 @@ class SmartPlaylistSearchTerm {
|
||||
|
||||
};
|
||||
|
||||
typedef QList<SmartPlaylistSearchTerm::Operator> OperatorList;
|
||||
using OperatorList = QList<SmartPlaylistSearchTerm::Operator>;
|
||||
|
||||
QDataStream &operator<<(QDataStream &s, const SmartPlaylistSearchTerm &term);
|
||||
QDataStream &operator>>(QDataStream &s, SmartPlaylistSearchTerm &term);
|
||||
|
||||
@@ -58,8 +58,8 @@ class SmartPlaylistsModel : public SimpleTreeModel<SmartPlaylistsItem> {
|
||||
LastRole
|
||||
};
|
||||
|
||||
typedef QList<PlaylistGeneratorPtr> GeneratorList;
|
||||
typedef QList<GeneratorList> DefaultGenerators;
|
||||
using GeneratorList = QList<PlaylistGeneratorPtr>;
|
||||
using DefaultGenerators = QList<GeneratorList>;
|
||||
|
||||
PlaylistGeneratorPtr CreateGenerator(const QModelIndex &idx) const;
|
||||
void AddGenerator(PlaylistGeneratorPtr gen);
|
||||
|
||||
Reference in New Issue
Block a user