[uim-commit] r2693 - trunk/xim
ekato at freedesktop.org
ekato at freedesktop.org
Fri Dec 23 20:37:03 PST 2005
Author: ekato
Date: 2005-12-23 20:36:57 -0800 (Fri, 23 Dec 2005)
New Revision: 2693
Modified:
trunk/xim/main.cpp
Log:
* xim/main.cpp (main_loop) : Workaround for g++-4.x.
Modified: trunk/xim/main.cpp
===================================================================
--- trunk/xim/main.cpp 2005-12-23 16:37:05 UTC (rev 2692)
+++ trunk/xim/main.cpp 2005-12-24 04:36:57 UTC (rev 2693)
@@ -165,12 +165,15 @@
continue;
}
- for (it = fd_watch_stat.begin(); it != fd_watch_stat.end(); it++) {
+ it = fd_watch_stat.begin();
+ while (it != fd_watch_stat.end()) {
int fd = it->first;
if (FD_ISSET(fd, &rfds))
it->second.fn(fd, READ_OK);
if (FD_ISSET(fd, &wfds))
it->second.fn(fd, WRITE_OK);
+ it = fd_watch_stat.find(fd);
+ it++;
}
}
}
More information about the uim-commit
mailing list