Commit 9b34c2c9 authored by Chris Hall's avatar Chris Hall Committed by Commit Bot

Disallowing copy & assign for ui::AXTree.

ui::AXTree contains owned pointers which it is responsible for freeing,
copying this is therefore non-trivial and we don't define our own copy
constructor.

R=aboxhall,dmazzoni

Change-Id: Iecbec9fc69c56dff96d3640f83abb6ef783ca1a5
Reviewed-on: https://chromium-review.googlesource.com/c/1358112
Commit-Queue: Chris Hall <chrishall@chromium.org>
Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#613383}
parent e37206fc
......@@ -374,6 +374,9 @@ class AX_EXPORT AXTree : public AXNode::OwnerTree {
// is an element within an ordered set.
// Invalidated every time the tree is updated.
mutable std::unordered_map<int32_t, OrderedSetInfo> ordered_set_info_map_;
// AXTree owns pointers so copying is non-trivial.
DISALLOW_COPY_AND_ASSIGN(AXTree);
};
} // namespace ui
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment