From bf0d713a72db33bdf6c51d65f009f73e822db3e0 Mon Sep 17 00:00:00 2001 From: vmpstr Date: Thu, 24 Mar 2016 13:22:54 -0700 Subject: 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} --- cc/layers/layer_list_iterator.cc | 2 ++ cc/layers/layer_list_iterator.h | 1 + 2 files changed, 3 insertions(+) (limited to 'cc/layers') diff --git a/cc/layers/layer_list_iterator.cc b/cc/layers/layer_list_iterator.cc index d64a946..e71238d 100644 --- a/cc/layers/layer_list_iterator.cc +++ b/cc/layers/layer_list_iterator.cc @@ -14,6 +14,8 @@ LayerListIterator::LayerListIterator(LayerImpl* root_layer) list_indices_.push_back(0); } +LayerListIterator::LayerListIterator(const LayerListIterator& other) = default; + LayerListIterator::~LayerListIterator() {} LayerListIterator& LayerListIterator::operator++() { diff --git a/cc/layers/layer_list_iterator.h b/cc/layers/layer_list_iterator.h index ba3c4d2..bdc4a4a 100644 --- a/cc/layers/layer_list_iterator.h +++ b/cc/layers/layer_list_iterator.h @@ -22,6 +22,7 @@ class LayerImpl; class CC_EXPORT LayerListIterator { public: explicit LayerListIterator(LayerImpl* root_layer); + LayerListIterator(const LayerListIterator& other); virtual ~LayerListIterator(); bool operator==(const LayerListIterator& other) const { -- cgit v1.1