diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-27 20:58:46 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-27 20:58:46 +0000 |
commit | 79c4c08950c203acb0cca664df70c88e1a844ead (patch) | |
tree | 09c244b465b99e36123b17ee6ef30d9e6283c9e0 | |
parent | d8fef52b071be812fd8a0f7ebea6c577bdb38592 (diff) | |
download | chromium_src-79c4c08950c203acb0cca664df70c88e1a844ead.zip chromium_src-79c4c08950c203acb0cca664df70c88e1a844ead.tar.gz chromium_src-79c4c08950c203acb0cca664df70c88e1a844ead.tar.bz2 |
Coverity: Fix call to string->empty() that meant ->clear()
CID=127
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/304009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30243 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/spellcheck_worditerator.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/spellcheck_worditerator.cc b/chrome/browser/spellcheck_worditerator.cc index 87343e5..34f2330 100644 --- a/chrome/browser/spellcheck_worditerator.cc +++ b/chrome/browser/spellcheck_worditerator.cc @@ -185,7 +185,7 @@ void SpellcheckWordIterator::Initialize( bool SpellcheckWordIterator::GetNextWord(string16* word_string, int* word_start, int* word_length) { - word_string->empty(); + word_string->clear(); *word_start = 0; *word_length = 0; while (position_ < length_) { |