Commit 79c4c089 authored by mattm@chromium.org's avatar mattm@chromium.org

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
parent d8fef52b
......@@ -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_) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment