lib/fmt: remove even more now-broken uses of FMT_STRING
MPD stopped building since fmt 11.1.0; see <https://github.com/fmtlib/fmt/issues/4304>. The first commit fixing this was9db7144, followed by5de0909(both on the unstable branch). This commit removes what the author believes to be the remaining uses in the MPD codebase.
This commit is contained in:
@@ -50,14 +50,14 @@ protocol_features_print(Client &client, Response &r) noexcept
|
||||
const auto protocol_feature = client.GetProtocolFeatures();
|
||||
for (unsigned i = 0; i < PF_NUM_OF_ITEM_TYPES; i++)
|
||||
if (protocol_feature.Test(ProtocolFeatureType(i)))
|
||||
r.Fmt(FMT_STRING("feature: {}\n"), protocol_feature_names[i]);
|
||||
r.Fmt("feature: {}\n", protocol_feature_names[i]);
|
||||
}
|
||||
|
||||
void
|
||||
protocol_features_print_all(Response &r) noexcept
|
||||
{
|
||||
for (unsigned i = 0; i < PF_NUM_OF_ITEM_TYPES; i++)
|
||||
r.Fmt(FMT_STRING("feature: {}\n"), protocol_feature_names[i]);
|
||||
r.Fmt("feature: {}\n", protocol_feature_names[i]);
|
||||
}
|
||||
|
||||
ProtocolFeatureType
|
||||
|
||||
Reference in New Issue
Block a user