Use unique_ptr for Source objects (fixes #904)

This commit is contained in:
John Firebaugh
2015-07-02 12:27:22 -07:00
parent 9361cbfd5f
commit c357ce540a
5 changed files with 20 additions and 20 deletions

View File

@@ -321,7 +321,7 @@ std::vector<RenderItem> Painter::determineRenderOrder(const Style& style) {
continue;
}
util::ptr<Source> source = style.getSource(layer.bucket->source);
Source* source = style.getSource(layer.bucket->source);
if (!source) {
Log::Warning(Event::Render, "can't find source for layer '%s'", layer.id.c_str());
continue;