From: Steinar H. Gunderson Date: Fri, 7 Aug 2015 22:16:47 +0000 (+0200) Subject: Add a missing const. X-Git-Tag: 1.2.1~6 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=1c4ef2d6d366e5539b98b408d797657ca8a17bc0;ds=sidebyside Add a missing const. --- diff --git a/server.cpp b/server.cpp index e99dbea..9ff4758 100644 --- a/server.cpp +++ b/server.cpp @@ -140,7 +140,7 @@ void Server::do_work() } timeout_time.tv_sec -= REQUEST_READ_TIMEOUT_SEC; while (!clients_ordered_by_connect_time.empty()) { - pair &connect_time_and_fd = clients_ordered_by_connect_time.front(); + const pair &connect_time_and_fd = clients_ordered_by_connect_time.front(); // See if we have reached the end of clients to process. if (is_earlier(timeout_time, connect_time_and_fd.first)) {