diff options
author | Max Kellermann <max@duempel.org> | 2013-10-17 21:53:19 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-17 21:53:19 +0200 |
commit | 58502b38d3eaf5649c9e09b6af6ea84d726dccd1 (patch) | |
tree | b9bbcf6711b783ceba4aac6259e1cb7c66293ec4 /src/QueueCommands.cxx | |
parent | d44880dfa99197a8c1f4b65416470e6ffbe534f6 (diff) | |
download | mpd-58502b38d3eaf5649c9e09b6af6ea84d726dccd1.tar.gz mpd-58502b38d3eaf5649c9e09b6af6ea84d726dccd1.tar.xz mpd-58502b38d3eaf5649c9e09b6af6ea84d726dccd1.zip |
*: use std::numeric_limits
Diffstat (limited to '')
-rw-r--r-- | src/QueueCommands.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/QueueCommands.cxx b/src/QueueCommands.cxx index 01b60e773..7d461a4ab 100644 --- a/src/QueueCommands.cxx +++ b/src/QueueCommands.cxx @@ -35,7 +35,7 @@ #include "util/Error.hxx" #include "fs/Path.hxx" -#include <glib.h> +#include <limits> #include <string.h> @@ -212,7 +212,7 @@ handle_plchangesposid(Client *client, gcc_unused int argc, char *argv[]) enum command_return handle_playlistinfo(Client *client, int argc, char *argv[]) { - unsigned start = 0, end = G_MAXUINT; + unsigned start = 0, end = std::numeric_limits<unsigned>::max(); bool ret; if (argc == 2 && !check_range(client, &start, &end, argv[1])) @@ -239,7 +239,8 @@ handle_playlistid(Client *client, int argc, char *argv[]) return print_playlist_result(client, PLAYLIST_RESULT_NO_SUCH_SONG); } else { - playlist_print_info(client, &client->playlist, 0, G_MAXUINT); + playlist_print_info(client, &client->playlist, + 0, std::numeric_limits<unsigned>::max()); } return COMMAND_RETURN_OK; |