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

Unified Diff: Source/bindings/templates/union.cpp

Issue 1054443002: Make classes for union types exported. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
Index: Source/bindings/templates/union.cpp
diff --git a/Source/bindings/templates/union.cpp b/Source/bindings/templates/union.cpp
index 3191d5e92e576220b17a627f764fb53ce34a2ba9..abc8218d79bc7d8b7fd2a4e8e51e5125f4254426 100644
--- a/Source/bindings/templates/union.cpp
+++ b/Source/bindings/templates/union.cpp
@@ -56,6 +56,12 @@ void {{container.cpp_class}}::set{{member.type_name}}({{member.rvalue_cpp_type}}
}
{% endfor %}
+#if COMPILER(MSVC) && defined(COMPONENT_BUILD) && LINK_CORE_MODULES_SEPARATELY
+{{container.cpp_class}}::{{container.cpp_class}}(const {{container.cpp_class}}&) = default;
+{{container.cpp_class}}::~{{container.cpp_class}}() = default;
+{{container.cpp_class}}& {{container.cpp_class}}::operator=(const {{container.cpp_class}}&) = default;
+#endif
+
{% if container.needs_trace %}
DEFINE_TRACE({{container.cpp_class}})
{

Powered by Google App Engine
This is Rietveld 408576698