AlbumCoverLoaderResult: Use enum class for type

This commit is contained in:
Jonas Kvinge
2023-04-06 01:23:42 +02:00
parent ee4fcf8100
commit 962536bc83
10 changed files with 33 additions and 33 deletions

View File

@@ -29,17 +29,17 @@
struct AlbumCoverLoaderResult {
enum Type {
Type_None,
Type_ManuallyUnset,
Type_Embedded,
Type_Automatic,
Type_Manual,
Type_Remote,
enum class Type {
None,
ManuallyUnset,
Embedded,
Automatic,
Manual,
Remote
};
explicit AlbumCoverLoaderResult(const bool _success = false,
const Type _type = Type_None,
const Type _type = Type::None,
const AlbumCoverImageResult &_album_cover = AlbumCoverImageResult(),
const QImage &_image_scaled = QImage(),
const QImage &_image_thumbnail = QImage(),