util/{Const,Writable}Buffer, ...: rename IsEmpty() to empty(), imitating STL

This commit is contained in:
Max Kellermann
2017-11-10 19:24:33 +01:00
parent 523051132d
commit 49784513b1
51 changed files with 142 additions and 142 deletions

View File

@@ -76,7 +76,7 @@ handle_unsubscribe(Client &client, Request args, Response &r)
CommandResult
handle_channels(Client &client, gcc_unused Request args, Response &r)
{
assert(args.IsEmpty());
assert(args.empty());
std::set<std::string> channels;
for (const auto &c : *client.GetInstance().client_list)
@@ -93,7 +93,7 @@ CommandResult
handle_read_messages(Client &client,
gcc_unused Request args, Response &r)
{
assert(args.IsEmpty());
assert(args.empty());
while (!client.messages.empty()) {
const ClientMessage &msg = client.messages.front();