if (fstype == "btrfs")
return new Btrfs(subvolume, root_prefix);
- return NULL;
+ return nullptr;
}
if (fstype == "ext4")
return new Ext4(subvolume, root_prefix);
- return NULL;
+ return nullptr;
}
#ifdef ENABLE_LVM
&Lvm::create,
#endif
- NULL
+ nullptr
};
- for (const func_t* func = funcs; *func != NULL; ++func)
+ for (const func_t* func = funcs; *func != nullptr; ++func)
{
Filesystem* fs = (*func)(fstype, subvolume, root_prefix);
if (fs)
if (regex_match(fstype, match, rx))
return new Lvm(subvolume, root_prefix, match[1]);
- return NULL;
+ return nullptr;
}