From b430a53e45b6d676142af7da78564de3bd97ef5f Mon Sep 17 00:00:00 2001 From: наб Date: Tue, 12 Nov 2024 19:50:56 +0100 Subject: methods/http.cc: APT::StringView -> std::string_view --- methods/http.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'methods') diff --git a/methods/http.cc b/methods/http.cc index 0c4d82262..4d0e60d93 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -23,7 +23,6 @@ #include #include #include -#include #include #include @@ -977,12 +976,12 @@ void HttpMethod::SendReq(FetchItem *Itm) #ifdef HAVE_SYSTEMD if (ConfigFindB("User-Agent-Non-Interactive", false)) { - using APT::operator""_sv; + using std::literals::operator""sv; char *unit = nullptr; sd_pid_get_unit(getpid(), &unit); if (unit != nullptr && *unit != '\0' && not APT::String::Startswith(unit, "user@") // user@ _is_ interactive - && "packagekit.service"_sv != unit // packagekit likely is interactive - && "dbus.service"_sv != unit) // aptdaemon and qapt don't have systemd services + && "packagekit.service"sv != unit // packagekit likely is interactive + && "dbus.service"sv != unit) // aptdaemon and qapt don't have systemd services Req << " non-interactive"; free(unit); -- cgit v1.2.3-70-g09d2