Index: remoting/host/event_executor_win.cc |
diff --git a/remoting/host/event_executor_win.cc b/remoting/host/event_executor_win.cc |
index e9c96edd2caafaf33a68823aeb082a627c64e9dc..24aa84178b39e4c24c1e343c222bbf7b7d686d75 100644 |
--- a/remoting/host/event_executor_win.cc |
+++ b/remoting/host/event_executor_win.cc |
@@ -356,8 +356,10 @@ EventExecutorWin::~EventExecutorWin() { |
} |
void EventExecutorWin::HandleInputEvents(ClientMessageList* messages) { |
- for (size_t i = 0; i < messages->size(); ++i) { |
- ChromotingClientMessage* msg = (*messages)[i]; |
+ for (ClientMessageList::iterator it = messages->begin(); |
+ it != messages->end(); |
+ ++it) { |
+ ChromotingClientMessage* msg = *it; |
if (msg->has_mouse_set_position_event()) { |
HandleMouseSetPosition(msg); |
} else if (msg->has_mouse_move_event()) { |