Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: ui/views/controls/textfield/textfield_views_model.cc

Issue 10222006: views: Use STLDeleteElements() function in ClearEditHistory(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/textfield_views_model.cc
diff --git a/ui/views/controls/textfield/textfield_views_model.cc b/ui/views/controls/textfield/textfield_views_model.cc
index 069013b1a2193f64582eb5351821205bb132f251..4adba05ea34a1feefd06809839fd7f55af41a166 100644
--- a/ui/views/controls/textfield/textfield_views_model.cc
+++ b/ui/views/controls/textfield/textfield_views_model.cc
@@ -666,9 +666,7 @@ void TextfieldViewsModel::ReplaceTextInternal(const string16& text,
}
void TextfieldViewsModel::ClearEditHistory() {
- STLDeleteContainerPointers(edit_history_.begin(),
- edit_history_.end());
- edit_history_.clear();
+ STLDeleteElements(&edit_history_);
current_edit_ = edit_history_.end();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698