add array overloads to make_unique and move it to mbgl::util from std

This commit is contained in:
Konstantin Käfer
2014-12-03 11:27:24 +01:00
parent 50669307c5
commit 82f3574d09
21 changed files with 84 additions and 58 deletions

View File

@@ -1,6 +1,7 @@
#include <mbgl/storage/base_request.hpp>
#include <mbgl/storage/response.hpp>
#include <mbgl/storage/request.hpp>
#include <mbgl/util/std.hpp>
#include <uv.h>
@@ -68,7 +69,7 @@ Callback *BaseRequest::add(Callback &&callback, const util::ptr<BaseRequest> &re
return nullptr;
} else {
self = request;
callbacks.push_front(std::unique_ptr<Callback>(new Callback(std::move(callback))));
callbacks.push_front(util::make_unique<Callback>(std::move(callback)));
return callbacks.front().get();
}
}