]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/common.cc: prefer prefix ++operator for iterators
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 18 Mar 2013 13:28:31 +0000 (14:28 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 18 Mar 2013 13:28:31 +0000 (14:28 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/tools/common.cc

index 514d33d902fffeb3bef029edeaa9ed614f797f79..8b1ed8f400b997c12e5913d73051b97741001084 100644 (file)
@@ -540,7 +540,7 @@ void Subscriptions::handle_log(MLog *m)
   last_known_version = m->version;
 
   std::deque<LogEntry>::iterator it = m->entries.begin();
-  for (; it != m->entries.end(); it++) {
+  for (; it != m->entries.end(); ++it) {
     LogEntry e = *it;
     cout << e.stamp << " " << e.who.name 
         << " " << e.type << " " << e.msg << std::endl;