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

Unified Diff: chrome/renderer/spellchecker/spellcheck_worditerator.cc

Issue 10889002: Reset word iterators when changing the spellchecker language. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | « chrome/renderer/spellchecker/spellcheck_worditerator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/spellchecker/spellcheck_worditerator.cc
===================================================================
--- chrome/renderer/spellchecker/spellcheck_worditerator.cc (revision 153594)
+++ chrome/renderer/spellchecker/spellcheck_worditerator.cc (working copy)
@@ -293,7 +293,7 @@
}
SpellcheckWordIterator::~SpellcheckWordIterator() {
- Close();
+ Reset();
}
bool SpellcheckWordIterator::Initialize(
@@ -380,7 +380,7 @@
return false;
}
-void SpellcheckWordIterator::Close() {
+void SpellcheckWordIterator::Reset() {
if (iterator_) {
ubrk_close(iterator_);
iterator_ = NULL;
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck_worditerator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698