[core] Fix performance-move-const-arg

This commit is contained in:
Thiago Marcos P. Santos
2019-09-23 17:41:33 +03:00
parent 3c23f6f9f7
commit c7bbd5bbef
61 changed files with 135 additions and 177 deletions

View File

@@ -22,7 +22,7 @@ std::unique_ptr<style::Layer> RasterLayerFactory::createLayer(const std::string&
std::unique_ptr<RenderLayer> RasterLayerFactory::createRenderLayer(Immutable<style::Layer::Impl> impl) noexcept {
assert(impl->getTypeInfo() == getTypeInfo());
return std::make_unique<RenderRasterLayer>(staticImmutableCast<style::RasterLayer::Impl>(std::move(impl)));
return std::make_unique<RenderRasterLayer>(staticImmutableCast<style::RasterLayer::Impl>(impl));
}
} // namespace mbgl