Commit 33069b64 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Chapter: Use enum_to_string

parent dd759b37
......@@ -29,6 +29,7 @@
#include "database/SqliteTools.h"
#include "database/SqliteQuery.h"
#include "Media.h"
#include "utils/Enums.h"
namespace medialibrary
{
......@@ -100,7 +101,7 @@ Query<IChapter> Chapter::fromMedia( MediaLibraryPtr ml, int64_t mediaId,
break;
default:
LOG_WARN( "Unsupported sorting criteria ",
static_cast<std::underlying_type<SortingCriteria>::type>( sort ),
utils::enum_to_string( sort ),
" falling back to default (by offset)" );
/* fall-through */
case SortingCriteria::Default:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment