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

@@ -27,6 +27,6 @@
class PlaylistGenerator;
typedef std::shared_ptr<PlaylistGenerator> PlaylistGeneratorPtr;
using PlaylistGeneratorPtr = std::shared_ptr<PlaylistGenerator>;
#endif // PLAYLISTGENERATOR_FWD_H

View File

@@ -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, };

View File

@@ -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);

View File

@@ -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);