[core] add std::move to constructors

This commit is contained in:
Konstantin Käfer
2015-12-01 17:45:21 +01:00
parent d5fb535058
commit 478472e501
12 changed files with 23 additions and 12 deletions

View File

@@ -6,6 +6,7 @@
#include <mbgl/util/thread_context.hpp>
#include <sstream>
#include <utility>
namespace mbgl {
@@ -130,7 +131,7 @@ GeometryCollection VectorTileFeature::getGeometries() const {
}
VectorTile::VectorTile(std::shared_ptr<const std::string> data_)
: data(data_) {
: data(std::move(data_)) {
}
util::ptr<GeometryTileLayer> VectorTile::getLayer(const std::string& name) const {