aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/SuggestedAction.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2021-08-04 03:43:48 +0300
committerlevlam <levlam@telegram.org>2021-08-04 03:43:48 +0300
commitd985e3cc84a13d8c0add3cdb52596f60cb0198fd (patch)
tree9346c62a6a16ca4c3e12dc5ac65190510d3a8664 /td/telegram/SuggestedAction.cpp
parentf8ab675ad14080b1609b5904c366052c814d1788 (diff)
Use preincrement for iterators.
Diffstat (limited to 'td/telegram/SuggestedAction.cpp')
-rw-r--r--td/telegram/SuggestedAction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/td/telegram/SuggestedAction.cpp b/td/telegram/SuggestedAction.cpp
index a89e27098..2aa3026fd 100644
--- a/td/telegram/SuggestedAction.cpp
+++ b/td/telegram/SuggestedAction.cpp
@@ -136,8 +136,8 @@ void update_suggested_actions(vector<SuggestedAction> &suggested_actions,
} else if (old_it == suggested_actions.end() || *new_it < *old_it) {
added_actions.push_back(*new_it++);
} else {
- old_it++;
- new_it++;
+ ++old_it;
+ ++new_it;
}
}
CHECK(!added_actions.empty() || !removed_actions.empty());