From 81c45ab39ac2d0d4380053996e455249df20c58d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Thu, 12 Feb 2015 18:18:43 -0800 Subject: [PATCH] no need to use a pointer to a unique_ptr when we can just use the pointer --- src/node_map.cpp | 4 ++-- vendor/mbgl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node_map.cpp b/src/node_map.cpp index 8a0634a90..d8b3d3e70 100644 --- a/src/node_map.cpp +++ b/src/node_map.cpp @@ -248,9 +248,9 @@ void NodeMap::renderFinished() { // Retain the StillImage object until the buffer is deleted. [](char *, void *hint) { - delete reinterpret_cast *>(hint); + delete reinterpret_cast(hint); }, - new std::unique_ptr(std::move(img)) + const_cast(img.release()) ); result->Set(NanNew("pixels"), pixels); diff --git a/vendor/mbgl b/vendor/mbgl index 3a6f095e4..590133379 160000 --- a/vendor/mbgl +++ b/vendor/mbgl @@ -1 +1 @@ -Subproject commit 3a6f095e4e05fffb62c70d154a40d55a52912c88 +Subproject commit 5901333797f05ac861b6242f0f9d7edf0875b5cd