diff options
author | limasdf@gmail.com <limasdf@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-16 21:34:00 +0000 |
---|---|---|
committer | limasdf@gmail.com <limasdf@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-16 21:34:00 +0000 |
commit | a69bb085e0e90213462182c7f8c61f4caf017868 (patch) | |
tree | 4827e359275a2de5baf87bc15c19c3c42e0f252a /chrome/browser/spellchecker/spellcheck_custom_dictionary.cc | |
parent | 8ab2998227b17d83f398cba0d897182cf405c9d7 (diff) | |
download | chromium_src-a69bb085e0e90213462182c7f8c61f4caf017868.zip chromium_src-a69bb085e0e90213462182c7f8c61f4caf017868.tar.gz chromium_src-a69bb085e0e90213462182c7f8c61f4caf017868.tar.bz2 |
[CleanUp] Use base::STLSetDifference() in place of std::set_difference()
BUG=254066
TEST=compile
Review URL: https://chromiumcodereview.appspot.com/23934009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223421 0039d316-1c4b-4281-b951-d872f2087c98
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); } } |