Chromium Code Reviews| Index: ui/views/controls/textfield/textfield_model.cc |
| diff --git a/ui/views/controls/textfield/textfield_model.cc b/ui/views/controls/textfield/textfield_model.cc |
| index 297ea1978cb84132388d102cbef5833fa8ade271..188747866fc2dc0ca4cc37480e129dd4252c3854 100644 |
| --- a/ui/views/controls/textfield/textfield_model.cc |
| +++ b/ui/views/controls/textfield/textfield_model.cc |
| @@ -441,7 +441,7 @@ bool TextfieldModel::CanUndo() { |
| } |
| bool TextfieldModel::CanRedo() { |
| - if (!edit_history_.size()) |
| + if (edit_history_.empty()) |
| return false; |
| // There is no redo iff the current edit is the last element in the history. |
| EditHistory::iterator iter = current_edit_; |
| @@ -478,7 +478,7 @@ bool TextfieldModel::Redo() { |
| if (current_edit_ == edit_history_.end()) |
| current_edit_ = edit_history_.begin(); |
| else |
| - current_edit_ ++; |
|
Nico
2016/07/13 16:23:27
O_o
|
| + current_edit_++; |
| base::string16 old = text(); |
| size_t old_cursor = GetCursorPosition(); |
| (*current_edit_)->Redo(this); |