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

Unified Diff: Source/core/dom/CharacterData.cpp

Issue 232243004: Fix compilation on Chromium OS after r171165 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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: Source/core/dom/CharacterData.cpp
diff --git a/Source/core/dom/CharacterData.cpp b/Source/core/dom/CharacterData.cpp
index 7b28b43dfd7f4b9c85ec2220a7cc31e2a04eaa1d..f93c0f7b9cae651e6261ded70792198d82fa583d 100644
--- a/Source/core/dom/CharacterData.cpp
+++ b/Source/core/dom/CharacterData.cpp
@@ -124,7 +124,7 @@ static bool validateOffsetCount(unsigned offset, unsigned count, unsigned length
void CharacterData::deleteData(unsigned offset, unsigned count, ExceptionState& exceptionState, RecalcStyleBehavior recalcStyleBehavior)
{
- unsigned realCount;
+ unsigned realCount = 0;
if (!validateOffsetCount(offset, count, length(), realCount, exceptionState))
return;
@@ -138,7 +138,7 @@ void CharacterData::deleteData(unsigned offset, unsigned count, ExceptionState&
void CharacterData::replaceData(unsigned offset, unsigned count, const String& data, ExceptionState& exceptionState)
{
- unsigned realCount;
+ unsigned realCount = 0;
if (!validateOffsetCount(offset, count, length(), realCount, exceptionState))
return;
« 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