From: Haojian Wu Date: Thu, 11 Jun 2015 07:52:48 +0000 (+0800) Subject: Don't use duprecated node buffer api, fix build error on OS X. X-Git-Tag: v0.28.2~6^2~6 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=894f9c0cb0b62244745707cc9775babb5f2593e8;p=electron.git Don't use duprecated node buffer api, fix build error on OS X. --- diff --git a/chromium_src/chrome/browser/printing/print_preview_message_handler.cc b/chromium_src/chrome/browser/printing/print_preview_message_handler.cc index 7005b1c2..78f01c5d 100644 --- a/chromium_src/chrome/browser/printing/print_preview_message_handler.cc +++ b/chromium_src/chrome/browser/printing/print_preview_message_handler.cc @@ -128,6 +128,7 @@ void PrintPreviewMessageHandler::RunPrintToPDFCallback( v8::HandleScope handle_scope(isolate); if (data) { v8::Local buffer = node::Buffer::Use( + isolate, const_cast(reinterpret_cast(data->front())), data->size()); print_to_pdf_callback_map_[request_id].Run(v8::Null(isolate), buffer);