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:
@@ -377,7 +377,7 @@ handle_config(Client &client, [[maybe_unused]] Request args, Response &r)
|
||||
#endif
|
||||
|
||||
if (const auto spl_path = map_spl_path(); !spl_path.IsNull())
|
||||
r.Fmt(FMT_STRING("playlist_directory: {}\n"), spl_path.ToUTF8());
|
||||
r.Fmt("playlist_directory: {}\n", spl_path.ToUTF8());
|
||||
|
||||
#ifdef HAVE_PCRE
|
||||
r.Write("pcre: 1\n");
|
||||
|
@@ -458,7 +458,7 @@ handle_sticker(Client &client, Request args, Response &r)
|
||||
/* set */
|
||||
if (args.size() == 5 && StringIsEqual(cmd, "set"))
|
||||
return handler->Set(uri, sticker_name, args[4]);
|
||||
|
||||
|
||||
/* inc */
|
||||
if (args.size() == 5 && StringIsEqual(cmd, "inc"))
|
||||
return handler->Inc(uri, sticker_name, args[4]);
|
||||
@@ -550,6 +550,6 @@ handle_sticker_types(Client &client, Request args, Response &r)
|
||||
for (unsigned i = 0; i < TAG_NUM_OF_ITEM_TYPES; i++)
|
||||
if (sticker_allowed_tags.Test(TagType(i)) &&
|
||||
tag_mask.Test(TagType(i)))
|
||||
r.Fmt(FMT_STRING("stickertype: {}\n"), tag_item_names[i]);
|
||||
r.Fmt("stickertype: {}\n", tag_item_names[i]);
|
||||
return CommandResult::OK;
|
||||
}
|
||||
|
Reference in New Issue
Block a user