diff --git a/src/disk.cpp b/src/disk.cpp index ca455be..733dd50 100644 --- a/src/disk.cpp +++ b/src/disk.cpp @@ -10,9 +10,8 @@ #include "gucc/string_utils.hpp" #include "gucc/zfs.hpp" -#include // for find_if -#include // for exists, is_directory -#include // for ranges::* +#include // for find_if +#include // for ranges::* #include // for Renderer, Button #include // for ButtonOption @@ -25,7 +24,6 @@ using namespace std::string_view_literals; using namespace std::string_literals; -namespace fs = std::filesystem; namespace { @@ -270,7 +268,7 @@ bool zfs_create_zpool(const std::string_view& partition, const std::string_view& // insert zpool name into config auto zfs_zpool_names = std::get>(config_data["ZFS_ZPOOL_NAMES"]); - zfs_zpool_names.push_back(pool_name.data()); + zfs_zpool_names.emplace_back(pool_name.data()); return true; }