mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2024-11-25 00:53:43 +00:00
Buildfix when DINDEXER_WITH_MEDIA_AUTODETECT=off
This commit is contained in:
parent
ac79665c9e
commit
ccf13d7dfe
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
};
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue