Remove boost::make_unique

This commit is contained in:
Leith Bade
2014-12-03 22:27:40 +11:00
parent 31077a813c
commit 9db5d2ac55
3 changed files with 6 additions and 9 deletions

View File

@@ -4,8 +4,6 @@
#include <list>
#include <tuple>
#include <boost/make_unique.hpp>
#include <sys/system_properties.h>
#include <GLES2/gl2.h>
@@ -15,6 +13,7 @@
#include <mbgl/platform/platform.hpp>
#include <mbgl/platform/event.hpp>
#include <mbgl/platform/log.hpp>
#include <mbgl/util/std.hpp>
namespace mbgl {
namespace android {
@@ -194,7 +193,7 @@ bool NativeMapView::initializeDisplay() {
return false;
}
const std::unique_ptr<EGLConfig[]> configs = boost::make_unique<EGLConfig[]>(num_configs); // switch to std::make_unique in C++14
const std::unique_ptr<EGLConfig[]> configs = mbgl::util::make_unique<EGLConfig[]>(num_configs);
if (!eglChooseConfig(display, config_attribs, configs.get(), num_configs, &num_configs)) {
mbgl::Log::Error(mbgl::Event::OpenGL, "eglChooseConfig() returned error %d", eglGetError());
terminateDisplay();