Avoid unnecessary copy of parameters.

This commit is contained in:
Haojian Wu 2017-03-29 21:29:52 +02:00
parent 99293dd57f
commit 5f724e57bc
8 changed files with 8 additions and 8 deletions

View file

@ -236,7 +236,7 @@ void AtomSandboxedRendererClient::WillReleaseScriptContext(
void AtomSandboxedRendererClient::InvokeIpcCallback(
v8::Handle<v8::Context> context,
std::string callback_name,
const std::string& callback_name,
std::vector<v8::Handle<v8::Value>> args) {
auto isolate = context->GetIsolate();
auto binding_key = mate::ConvertToV8(isolate, kIpcKey)->ToString();