command/*: use std::span instead of ConstBuffer

This commit is contained in:
Max Kellermann
2022-07-04 18:38:57 +02:00
parent baff5e5594
commit 9b427b3171
12 changed files with 118 additions and 78 deletions

View File

@@ -138,7 +138,7 @@ public:
CommandResult
handle_read_comments(Client &client, Request args, Response &r)
{
assert(args.size == 1);
assert(args.size() == 1);
const char *const uri = args.front();
@@ -288,7 +288,7 @@ read_db_art(Client &client, Response &r, const char *uri, const uint64_t offset)
CommandResult
handle_album_art(Client &client, Request args, Response &r)
{
assert(args.size == 2);
assert(args.size() == 2);
const char *uri = args.front();
size_t offset = args.ParseUnsigned(1);
@@ -368,7 +368,7 @@ public:
CommandResult
handle_read_picture(Client &client, Request args, Response &r)
{
assert(args.size == 2);
assert(args.size() == 2);
const char *const uri = args.front();
const size_t offset = args.ParseUnsigned(1);