1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-08-13 14:39:47 +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; SetTaskType m_set_task;
MediaTypes m_default; MediaTypes m_default;
#if defined(WITH_MEDIA_AUTODETECT)
std::string m_search_path; std::string m_search_path;
#if defined(WITH_MEDIA_AUTODETECT)
bool m_force; bool m_force;
#endif #endif
}; };

View file

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