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

Unified Diff: chrome/browser/spellcheck_worditerator.cc

Issue 304009: Coverity: Fix call to string->empty() that meant ->clear() (Closed)
Patch Set: Created 11 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/spellcheck_worditerator.cc
diff --git a/chrome/browser/spellcheck_worditerator.cc b/chrome/browser/spellcheck_worditerator.cc
index 87343e5b853459014a29b4dc48a33bdeb3a24113..34f2330448aac715df1e8ad70a1fc15307cbaf8a 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_) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698