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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLEntityParser.cpp

Issue 2583233002: Migrate WTF::Vector::append() to ::push_back() [part 7 of N] (Closed)
Patch Set: Created 4 years 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
Index: third_party/WebKit/Source/core/html/parser/HTMLEntityParser.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLEntityParser.cpp b/third_party/WebKit/Source/core/html/parser/HTMLEntityParser.cpp
index c9c59b570c48147f98865e82359aaf243697f2cf..e14d0d08ee49b742a20bf8ea32c02570b1ccb58e 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLEntityParser.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLEntityParser.cpp
@@ -110,7 +110,7 @@ static bool consumeNamedEntity(SegmentedString& source,
entitySearch.advance(cc);
if (!entitySearch.isEntityPrefix())
break;
- consumedCharacters.append(cc);
+ consumedCharacters.push_back(cc);
source.advanceAndASSERT(cc);
}
notEnoughCharacters = source.isEmpty();
@@ -136,7 +136,7 @@ static bool consumeNamedEntity(SegmentedString& source,
for (int i = 0; i < length; ++i) {
cc = source.currentChar();
DCHECK_EQ(cc, static_cast<UChar>(*reference++));
- consumedCharacters.append(cc);
+ consumedCharacters.push_back(cc);
source.advanceAndASSERT(cc);
ASSERT(!source.isEmpty());
}
@@ -266,7 +266,7 @@ bool consumeHTMLEntity(SegmentedString& source,
if (result > UCHAR_MAX_VALUE)
result = kInvalidUnicode;
- consumedCharacters.append(cc);
+ consumedCharacters.push_back(cc);
source.advanceAndASSERT(cc);
}
ASSERT(source.isEmpty());

Powered by Google App Engine
This is Rietveld 408576698