From e5ec6adf7d4e534b2958999aeeb90af66b3ae2f7 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 11 Jan 2017 20:06:25 -0800 Subject: [PATCH] Update std:move call to fix macOS compiler error --- brightray/browser/inspectable_web_contents_impl.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/brightray/browser/inspectable_web_contents_impl.cc b/brightray/browser/inspectable_web_contents_impl.cc index 3ad08952987..ea099c58c03 100644 --- a/brightray/browser/inspectable_web_contents_impl.cc +++ b/brightray/browser/inspectable_web_contents_impl.cc @@ -279,8 +279,7 @@ void InspectableWebContentsImpl::ShowDevTools() { Observe(devtools_web_contents_.get()); devtools_web_contents_->SetDelegate(this); - AttachTo(std::move( - content::DevToolsAgentHost::GetOrCreateFor(web_contents_.get()))); + AttachTo(content::DevToolsAgentHost::GetOrCreateFor(web_contents_.get())); devtools_web_contents_->GetController().LoadURL( GetDevToolsURL(can_dock_), @@ -308,7 +307,7 @@ void InspectableWebContentsImpl::AttachTo( scoped_refptr host) { if (agent_host_.get()) Detach(); - agent_host_ = host; + agent_host_ = std::move(host); // Terminate existing debugging connections and start debugging. agent_host_->ForceAttachClient(this); }