From 9a3950492278c7fe2110765f4cb4d39ada14d073 Mon Sep 17 00:00:00 2001 From: Michal Jarzabek Date: Thu, 14 Jul 2016 18:50:38 +0100 Subject: [PATCH] msg/AsyncConnection: add const to mem functions Signed-off-by: Michal Jarzabek --- src/msg/async/AsyncConnection.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msg/async/AsyncConnection.h b/src/msg/async/AsyncConnection.h index 9d6c3435eef64..e1001119e9429 100644 --- a/src/msg/async/AsyncConnection.h +++ b/src/msg/async/AsyncConnection.h @@ -97,7 +97,7 @@ class AsyncConnection : public Connection { state = STATE_ACCEPTING_WAIT_CONNECT_MSG; return 0; } - bool is_queued() { + bool is_queued() const { return !out_q.empty() || outcoming_bl.length(); } void shutdown_socket() { @@ -130,7 +130,7 @@ class AsyncConnection : public Connection { } return m; } - bool _has_next_outgoing() { + bool _has_next_outgoing() const { return !out_q.empty(); } void reset_recv_state();