From 83afc124759673af58435b8791dd357bf751642c Mon Sep 17 00:00:00 2001 From: Alexandre Bouvier Date: Sat, 18 Feb 2023 23:24:04 +0100 Subject: externals: Update cpp-httplib to latest --- src/web_service/web_backend.cpp | 2 +- src/yuzu/discord_impl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/web_service/web_backend.cpp b/src/web_service/web_backend.cpp index 12a7e4922..dff380cca 100644 --- a/src/web_service/web_backend.cpp +++ b/src/web_service/web_backend.cpp @@ -71,7 +71,7 @@ struct Client::Impl { const std::string& jwt_ = "", const std::string& username_ = "", const std::string& token_ = "") { if (cli == nullptr) { - cli = std::make_unique(host.c_str()); + cli = std::make_unique(host); } if (!cli->is_valid()) { diff --git a/src/yuzu/discord_impl.cpp b/src/yuzu/discord_impl.cpp index de0c307d4..978ffef33 100644 --- a/src/yuzu/discord_impl.cpp +++ b/src/yuzu/discord_impl.cpp @@ -76,7 +76,7 @@ void DiscordImpl::Update() { // New Check for game cover httplib::Client cli(game_cover_url); - if (auto res = cli.Head(fmt::format("/images/game/boxart/{}.png", icon_name).c_str())) { + if (auto res = cli.Head(fmt::format("/images/game/boxart/{}.png", icon_name))) { if (res->status == 200) { game_cover_url += fmt::format("/images/game/boxart/{}.png", icon_name); } else { -- cgit v1.2.3