command/*: use std::span instead of ConstBuffer
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user