Replaced behaviour FLAG_* constants with an enum.

This commit is contained in:
Kai Blaschke
2022-04-05 13:20:47 +02:00
parent 27b1a57b82
commit 5e5b35fdb8
3 changed files with 21 additions and 10 deletions

View File

@ -6,12 +6,12 @@
#include <utility>
projectMWrapper::projectMWrapper(std::string configFile, int flags)
: ProjectM(std::move(configFile), flags)
: ProjectM(std::move(configFile), static_cast<ProjectM::Flags>(flags))
{
}
projectMWrapper::projectMWrapper(ProjectM::Settings settings, int flags)
: ProjectM(std::move(settings), flags)
: ProjectM(std::move(settings), static_cast<ProjectM::Flags>(flags))
{
}