1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2024-11-29 01:33:46 +00:00

Buildfix when DINDEXER_WITH_MEDIA_AUTODETECT=off

This commit is contained in:
King_DuckZ 2016-07-15 17:45:48 +01:00
parent ac79665c9e
commit ccf13d7dfe
2 changed files with 2 additions and 3 deletions

View file

@ -41,8 +41,8 @@ namespace mchlib {
SetTaskType m_set_task;
MediaTypes m_default;
#if defined(WITH_MEDIA_AUTODETECT)
std::string m_search_path;
#if defined(WITH_MEDIA_AUTODETECT)
bool m_force;
#endif
};

View file

@ -29,15 +29,14 @@ namespace mchlib {
MediaType::MediaType (SetTaskType parSet, char parDefault, bool parForce, std::string parSearchPath) :
m_set_task(parSet),
m_default(char_to_media_type(parDefault))
#if defined(WITH_MEDIA_AUTODETECT)
, m_search_path(std::move(parSearchPath))
#if defined(WITH_MEDIA_AUTODETECT)
, m_force(parForce)
#endif
{
assert(m_set_task);
#if !defined(WITH_MEDIA_AUTODETECT)
static_cast<void>(parForce);
static_cast<void>(parSearchPath);
#endif
}