From 743683ffcfaf3dc52ec27d2afdf5316a9be13afd Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Mon, 29 Jul 2024 00:49:25 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20disk:=20refactor=20with=20clang-?= =?UTF-8?q?tidy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/disk.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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; }