From 58502b38d3eaf5649c9e09b6af6ea84d726dccd1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 17 Oct 2013 21:53:19 +0200 Subject: *: use std::numeric_limits --- src/QueueCommands.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/QueueCommands.cxx') 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 +#include #include @@ -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::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::max()); } return COMMAND_RETURN_OK; -- cgit v1.2.3