mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-04-21 12:31:43 +00:00
change category to enum class
This commit is contained in:
@@ -170,19 +170,19 @@ namespace newest
|
||||
}
|
||||
|
||||
int
|
||||
Policy::Func::newest(const Category::Enum::Type type,
|
||||
const Branches &branches_,
|
||||
const char *fusepath,
|
||||
const uint64_t minfreespace,
|
||||
vector<string> *paths)
|
||||
Policy::Func::newest(const Category type,
|
||||
const Branches &branches_,
|
||||
const char *fusepath,
|
||||
const uint64_t minfreespace,
|
||||
vector<string> *paths)
|
||||
{
|
||||
switch(type)
|
||||
{
|
||||
case Category::Enum::create:
|
||||
case Category::CREATE:
|
||||
return newest::create(branches_,fusepath,minfreespace,paths);
|
||||
case Category::Enum::action:
|
||||
case Category::ACTION:
|
||||
return newest::action(branches_,fusepath,paths);
|
||||
case Category::Enum::search:
|
||||
case Category::SEARCH:
|
||||
default:
|
||||
return newest::search(branches_,fusepath,paths);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user