From 10b51accd5cd31ce3d59deefbb403c888560e435 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Mon, 29 Jul 2024 00:32:10 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20simple=5Ftui:=20use=20string=5Fv?= =?UTF-8?q?iew=20literals=20in=20more=20places?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/simple_tui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/simple_tui.cpp b/src/simple_tui.cpp index 0b04cf2..80e8524 100644 --- a/src/simple_tui.cpp +++ b/src/simple_tui.cpp @@ -53,7 +53,7 @@ auto select_filesystem() noexcept -> std::string { bool success{}; auto ok_callback = [&] { const auto& file_sys = menu_entries[static_cast(selected)]; - /*if (file_sys == "zfs") { + /*if (file_sys == "zfs"sv) { // NOTE: We don't have automatic zfs partitioning, // in HEADLESS mode. tui::zfs_auto(); @@ -404,7 +404,7 @@ void menu_simple() noexcept { } // If the root partition is btrfs, offer to create subvolumes - /*if (gucc::fs::utils::get_mountpoint_fs(mountpoint) == "btrfs") { + /*if (gucc::fs::utils::get_mountpoint_fs(mountpoint) == "btrfs"sv) { // Check if there are subvolumes already on the btrfs partition const auto& subvolumes = fmt::format(FMT_COMPILE("btrfs subvolume list \"{}\" 2>/dev/null"), mountpoint); const auto& subvolumes_count = gucc::utils::exec(fmt::format(FMT_COMPILE("{} | wc -l"), subvolumes));