summaryrefslogtreecommitdiffstats
path: root/components/mus/ws
diff options
context:
space:
mode:
authorvmpstr <vmpstr@chromium.org>2016-03-24 13:22:54 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-24 20:25:04 +0000
commitbf0d713a72db33bdf6c51d65f009f73e822db3e0 (patch)
treefa6a45c9d24364ee4bbb6c2ca642ed55378a4a2c /components/mus/ws
parent1b9ba3a73f704481805e775df401a5bfd21ee3a9 (diff)
downloadchromium_src-bf0d713a72db33bdf6c51d65f009f73e822db3e0.zip
chromium_src-bf0d713a72db33bdf6c51d65f009f73e822db3e0.tar.gz
chromium_src-bf0d713a72db33bdf6c51d65f009f73e822db3e0.tar.bz2
Add more out of line copy ctors for complex classes.
This patch adds the remaining copy constructors for complex classes. After this patch, it should be possible to enable the heavy class copy constructor checks by default. R=thakis@chromium.org, dcheng@chromium.org TBR=jam@chromium.org BUG=436357 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1825273002 Cr-Commit-Position: refs/heads/master@{#383131}
Diffstat (limited to 'components/mus/ws')
-rw-r--r--components/mus/ws/platform_display_init_params.cc2
-rw-r--r--components/mus/ws/platform_display_init_params.h1
-rw-r--r--components/mus/ws/test_change_tracker.cc4
-rw-r--r--components/mus/ws/test_change_tracker.h2
4 files changed, 9 insertions, 0 deletions
diff --git a/components/mus/ws/platform_display_init_params.cc b/components/mus/ws/platform_display_init_params.cc
index 398a6ba..94ad22d 100644
--- a/components/mus/ws/platform_display_init_params.cc
+++ b/components/mus/ws/platform_display_init_params.cc
@@ -11,6 +11,8 @@ namespace mus {
namespace ws {
PlatformDisplayInitParams::PlatformDisplayInitParams() {}
+PlatformDisplayInitParams::PlatformDisplayInitParams(
+ const PlatformDisplayInitParams& other) = default;
PlatformDisplayInitParams::~PlatformDisplayInitParams() {}
} // namespace ws
diff --git a/components/mus/ws/platform_display_init_params.h b/components/mus/ws/platform_display_init_params.h
index 81cc1b0..f097a0f 100644
--- a/components/mus/ws/platform_display_init_params.h
+++ b/components/mus/ws/platform_display_init_params.h
@@ -20,6 +20,7 @@ namespace ws {
struct PlatformDisplayInitParams {
PlatformDisplayInitParams();
+ PlatformDisplayInitParams(const PlatformDisplayInitParams& other);
~PlatformDisplayInitParams();
mojo::Connector* connector = nullptr;
diff --git a/components/mus/ws/test_change_tracker.cc b/components/mus/ws/test_change_tracker.cc
index 8416f95..aefa54e 100644
--- a/components/mus/ws/test_change_tracker.cc
+++ b/components/mus/ws/test_change_tracker.cc
@@ -198,6 +198,8 @@ Change::Change()
bool_value(false),
change_id(0u) {}
+Change::Change(const Change& other) = default;
+
Change::~Change() {}
TestChangeTracker::TestChangeTracker() : delegate_(NULL) {}
@@ -391,6 +393,8 @@ void TestChangeTracker::AddChange(const Change& change) {
TestWindow::TestWindow() {}
+TestWindow::TestWindow(const TestWindow& other) = default;
+
TestWindow::~TestWindow() {}
std::string TestWindow::ToString() const {
diff --git a/components/mus/ws/test_change_tracker.h b/components/mus/ws/test_change_tracker.h
index 7f64d84..46103bc 100644
--- a/components/mus/ws/test_change_tracker.h
+++ b/components/mus/ws/test_change_tracker.h
@@ -46,6 +46,7 @@ enum ChangeType {
// TODO(sky): consider nuking and converting directly to WindowData.
struct TestWindow {
TestWindow();
+ TestWindow(const TestWindow& other);
~TestWindow();
// Returns a string description of this.
@@ -65,6 +66,7 @@ struct TestWindow {
// fields that are used.
struct Change {
Change();
+ Change(const Change& other);
~Change();
ChangeType type;