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

Unified Diff: Source/bindings/tests/results/V8TestObject.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/templates/methods.cpp ('k') | Source/bindings/tests/results/V8TestSpecialOperations.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/tests/results/V8TestObject.cpp
diff --git a/Source/bindings/tests/results/V8TestObject.cpp b/Source/bindings/tests/results/V8TestObject.cpp
index 97bafbfb65b4b7324b0b840b4103f2ef8e881237..cca5261d6660a57a4b02eb649d1c00a36d9544d1 100644
--- a/Source/bindings/tests/results/V8TestObject.cpp
+++ b/Source/bindings/tests/results/V8TestObject.cpp
@@ -4972,7 +4972,7 @@ static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
{
v8::Handle<v8::Object> holder = info.Holder();
TestObject* impl = V8TestObject::toNative(holder);
- RefPtrWillBeRawPtr<Node> result;
+ RefPtrWillBeRawPtr<Node> result = nullptr;
if (!V8TestObject::PrivateScript::nodeAttributeAttributeGetter(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext()), impl, &result))
return;
v8SetReturnValueFast(info, WTF::getPtr(result.release()), impl);
@@ -10079,7 +10079,7 @@ static void nodeMethodWithNodeArgumentImplementedInPrivateScriptMethod(const v8:
V8RethrowTryCatchScope rethrow(block);
TONATIVE_VOID_INTERNAL(value, V8Node::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
}
- RefPtrWillBeRawPtr<Node> result;
+ RefPtrWillBeRawPtr<Node> result = nullptr;
if (!V8TestObject::PrivateScript::nodeMethodWithNodeArgumentImplementedInPrivateScriptMethod(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext()), impl, value, &result))
return;
v8SetReturnValue(info, result.release());
@@ -10115,7 +10115,7 @@ static void nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethod(const
TONATIVE_VOID_INTERNAL(value2, static_cast<double>(info[3]->NumberValue()));
TOSTRING_VOID_INTERNAL(string, info[4]);
}
- RefPtrWillBeRawPtr<Node> result;
+ RefPtrWillBeRawPtr<Node> result = nullptr;
if (!V8TestObject::PrivateScript::nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethod(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext()), impl, document, node, value1, value2, string, &result))
return;
v8SetReturnValue(info, result.release());
« no previous file with comments | « Source/bindings/templates/methods.cpp ('k') | Source/bindings/tests/results/V8TestSpecialOperations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698