diff options
Diffstat (limited to 'chrome/browser/spellchecker/spellcheck_custom_dictionary.cc')
-rw-r--r-- | chrome/browser/spellchecker/spellcheck_custom_dictionary.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc b/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc index 29f89fc..6654d68 100644 --- a/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc +++ b/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc @@ -448,12 +448,9 @@ void SpellcheckCustomDictionary::Apply( dictionary_change.to_add().end()); } if (!dictionary_change.to_remove().empty()) { - WordSet updated_words; - std::set_difference(words_.begin(), - words_.end(), - dictionary_change.to_remove().begin(), - dictionary_change.to_remove().end(), - std::inserter(updated_words, updated_words.end())); + WordSet updated_words = + base::STLSetDifference<WordSet>(words_, + dictionary_change.to_remove()); std::swap(words_, updated_words); } } |