Commit 48e5a7f1 authored by vabr's avatar vabr Committed by Commit Bot

Don't move raw pointers in HTMLCollection.h

Moving raw pointers does the same job as copying, but is more verbose and also
more confusing: e.g., is the supposed pointer meant to be a smart one?

This instance was flagged by the tool from
https://codereview.chromium.org/2919243002/.

BUG=729393

Review-Url: https://codereview.chromium.org/2927233003
Cr-Commit-Position: refs/heads/master@{#478589}
parent 4cda417b
......@@ -180,7 +180,7 @@ class CORE_EXPORT HTMLCollection
// Do not repeat registration for the same invalidation type.
if (InvalidationType() != kInvalidateOnIdNameAttrChange)
GetDocument().RegisterNodeListWithIdNameCache(this);
named_item_cache_ = std::move(cache);
named_item_cache_ = cache;
}
NamedItemCache& GetNamedItemCache() const {
......
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