aboutsummaryrefslogtreecommitdiff
path: root/src/ClientInternal.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-03 18:07:48 +0100
committerMax Kellermann <max@duempel.org>2013-01-03 18:07:48 +0100
commit59400d38a99ac8ffbfd7d89e021ed2f56ffbfd23 (patch)
tree58d15f2651250942d8ff46fd1a43520168e33595 /src/ClientInternal.hxx
parent5155b0f6087b5929838f6594a719011e3e704244 (diff)
Client: use std::deque for messages
Diffstat (limited to 'src/ClientInternal.hxx')
-rw-r--r--src/ClientInternal.hxx11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/ClientInternal.hxx b/src/ClientInternal.hxx
index be423bb2..5ad24068 100644
--- a/src/ClientInternal.hxx
+++ b/src/ClientInternal.hxx
@@ -26,6 +26,7 @@
#include <set>
#include <string>
+#include <deque>
#include <glib.h>
@@ -94,15 +95,9 @@ public:
unsigned num_subscriptions;
/**
- * A list of messages this client has received in reverse
- * order (latest first).
+ * A list of messages this client has received.
*/
- GSList *messages;
-
- /**
- * The number of messages in #messages.
- */
- unsigned num_messages;
+ std::deque<ClientMessage> messages;
gcc_pure
bool IsSubscribed(const char *channel_name) const {