use util::ptr as a wrapper around std::shared_ptr that asserts nonemptiness

This commit is contained in:
Konstantin Käfer
2014-09-16 16:38:32 +02:00
parent 6c526e5637
commit f26bb724dc
60 changed files with 237 additions and 214 deletions

View File

@@ -1,20 +1,19 @@
#include <mbgl/util/raster.hpp>
#include <memory>
#include <cassert>
#include <cstring>
#include <mbgl/platform/platform.hpp>
#include <mbgl/platform/gl.hpp>
#include <mbgl/util/raster.hpp>
#include <mbgl/util/time.hpp>
#include <mbgl/util/uv_detail.hpp>
#include <mbgl/util/std.hpp>
#include <png.h>
#include <cassert>
#include <cstring>
using namespace mbgl;
Raster::Raster(const std::shared_ptr<Texturepool> &texturepool)
Raster::Raster(const util::ptr<Texturepool> &texturepool)
: texturepool(texturepool)
{}