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

Unified Diff: Source/core/svg/SVGFontFaceSrcElement.cpp

Issue 209433004: Do not zero-initialize RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix compilation on gcc and msvc Created 6 years, 9 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 | « Source/core/svg/SVGFontFaceElement.cpp ('k') | Source/core/xml/XPathParser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFontFaceSrcElement.cpp
diff --git a/Source/core/svg/SVGFontFaceSrcElement.cpp b/Source/core/svg/SVGFontFaceSrcElement.cpp
index f1cd5a5e7d0d2b9bfe7576ed150ab4349911e420..0aa96e5ea6aac03f11f51e154e698d1b7d5419c8 100644
--- a/Source/core/svg/SVGFontFaceSrcElement.cpp
+++ b/Source/core/svg/SVGFontFaceSrcElement.cpp
@@ -49,7 +49,7 @@ PassRefPtrWillBeRawPtr<CSSValueList> SVGFontFaceSrcElement::srcValue() const
{
RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createCommaSeparated();
for (SVGElement* element = Traversal<SVGElement>::firstChild(*this); element; element = Traversal<SVGElement>::nextSibling(*element)) {
- RefPtrWillBeRawPtr<CSSFontFaceSrcValue> srcValue;
+ RefPtrWillBeRawPtr<CSSFontFaceSrcValue> srcValue = nullptr;
if (isSVGFontFaceUriElement(*element))
srcValue = toSVGFontFaceUriElement(*element).srcValue();
else if (isSVGFontFaceNameElement(*element))
« no previous file with comments | « Source/core/svg/SVGFontFaceElement.cpp ('k') | Source/core/xml/XPathParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698