Clang: fix temporary variable usage

Signed-off-by: zeph <zephyrzefa15@gmail.com>
This commit is contained in:
zeph 2025-12-08 23:35:04 +01:00
parent 6ecc5e6900
commit 1c1935229c
No known key found for this signature in database

View File

@ -60,7 +60,8 @@ bool cfg_clans::get_use_https() const
std::vector<std::pair<std::string, std::string>> cfg_clans::get_hosts()
{
std::vector<std::pair<std::string, std::string>> vec_hosts;
const auto hosts_list = fmt::split_sv(hosts.to_string(), {"|||"});
const std::string host_str = hosts.to_string();
const auto hosts_list = fmt::split_sv(host_str, {"|||"});
for (const auto& cur_host : hosts_list)
{