Commit 15a4246e authored by Max Kellermann's avatar Max Kellermann

Client, Inotify: use std::list instead of std::deque

Random access is not necessary here.
parent 9a718457
......@@ -27,7 +27,7 @@
#include <set>
#include <string>
#include <deque>
#include <list>
#include <glib.h>
......@@ -97,7 +97,7 @@ public:
/**
* A list of messages this client has received.
*/
std::deque<ClientMessage> messages;
std::list<ClientMessage> messages;
Client(struct player_control *player_control,
int fd, int uid, int num);
......
......@@ -21,7 +21,7 @@
#include "InotifyQueue.hxx"
#include "UpdateGlue.hxx"
#include <deque>
#include <list>
#include <string>
#include <glib.h>
......@@ -40,7 +40,7 @@ enum {
INOTIFY_UPDATE_DELAY_S = 5,
};
static std::deque<std::string> inotify_queue;
static std::list<std::string> inotify_queue;
static guint queue_source_id;
void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment