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

Unified Diff: Source/bindings/tests/results/V8TestSpecialOperations.cpp

Issue 474323002: IDL: initialize union member variables (to null/zero) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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/bindings/tests/results/V8TestObject.cpp ('k') | Source/bindings/tests/results/V8TestTypedefs.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/tests/results/V8TestSpecialOperations.cpp
diff --git a/Source/bindings/tests/results/V8TestSpecialOperations.cpp b/Source/bindings/tests/results/V8TestSpecialOperations.cpp
index a24ea47ed7bad5ad38641f07a24c7d8314a64271..ae1dc3471017dfd6e38ce3d724c5a620820df1ba 100644
--- a/Source/bindings/tests/results/V8TestSpecialOperations.cpp
+++ b/Source/bindings/tests/results/V8TestSpecialOperations.cpp
@@ -59,8 +59,8 @@ static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
TOSTRING_VOID_INTERNAL(name, info[0]);
}
- RefPtrWillBeRawPtr<Node> result0;
- RefPtrWillBeRawPtr<NodeList> result1;
+ RefPtrWillBeRawPtr<Node> result0 = nullptr;
+ RefPtrWillBeRawPtr<NodeList> result1 = nullptr;
impl->getItem(name, result0, result1);
if (result0) {
v8SetReturnValue(info, result0.release());
@@ -84,8 +84,8 @@ static void namedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyCa
{
TestSpecialOperations* impl = V8TestSpecialOperations::toNative(info.Holder());
AtomicString propertyName = toCoreAtomicString(name);
- RefPtrWillBeRawPtr<Node> result0;
- RefPtrWillBeRawPtr<NodeList> result1;
+ RefPtrWillBeRawPtr<Node> result0 = nullptr;
+ RefPtrWillBeRawPtr<NodeList> result1 = nullptr;
impl->getItem(propertyName, result0, result1);
if (!(result0 || result1))
return;
« no previous file with comments | « Source/bindings/tests/results/V8TestObject.cpp ('k') | Source/bindings/tests/results/V8TestTypedefs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698