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

unittests: Use enum_to_string

parent e117dd85
Pipeline #145659 passed with stages
in 6 minutes and 42 seconds
......@@ -37,6 +37,7 @@
#include "MediaGroup.h"
#include "File.h"
#include "utils/File.h"
#include "utils/Enums.h"
#include <fstream>
......@@ -472,8 +473,7 @@ static void Upgrade22to23( DbModel* T )
sqlite::Statement stmt{
T->ml->getConn()->handle(),
"SELECT COUNT(*) FROM " + parser::Task::Table::Name +
" WHERE file_type = " + std::to_string(
static_cast<std::underlying_type_t<IFile::Type>>( IFile::Type::Playlist ) )
" WHERE file_type = " + utils::enum_to_string( IFile::Type::Playlist )
};
stmt.execute();
auto row = stmt.row();
......
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