Commit 4b4500cb authored by Maksim Ivanov's avatar Maksim Ivanov Committed by Commit Bot

Fix use-after-move in //content/shell/renderer/web_test/web_ax_object_proxy.cc

Fix use-after-move (potential) bugs found by the
"bugprone-use-after-move" clang-tidy check.

Bug: 1122844
Change-Id: Ic8f0f7a138e8b085e62c4b76b36c8f7ca095d472
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2385395
Commit-Queue: danakj <danakj@chromium.org>
Reviewed-by: default avatardanakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#803512}
parent 209548bf
...@@ -2207,7 +2207,7 @@ v8::Local<v8::Object> WebAXObjectProxyList::GetOrCreate( ...@@ -2207,7 +2207,7 @@ v8::Local<v8::Object> WebAXObjectProxyList::GetOrCreate(
return {}; return {};
} }
elements_.emplace_back(isolate, std::move(handle)); elements_.emplace_back(isolate, handle);
return handle; return handle;
} }
......
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