Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
WIP: try fix gcc debug build by allowing a move over a copy
Browse files Browse the repository at this point in the history
  • Loading branch information
ahk committed Oct 23, 2019
1 parent ec31f15 commit 31e0c64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/mbgl/layermanager/fill_layer_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ FillLayerFactory::createLayout(const LayoutParameters& parameters,
using namespace style;

using LayoutType = PatternLayout<FillBucket, FillLayerProperties, FillPattern, FillLayoutProperties>;
auto layout = std::make_unique<LayoutType>(parameters.bucketParameters, group, std::move(layer), parameters.imageDependencies);
auto&& layout = std::make_unique<LayoutType>(parameters.bucketParameters, group, std::move(layer), parameters.imageDependencies);

layout->template maybeApplySortKey<FillSortKey>();

return layout;
return std::move(layout);
}

std::unique_ptr<RenderLayer> FillLayerFactory::createRenderLayer(Immutable<style::Layer::Impl> impl) noexcept {
Expand Down
4 changes: 2 additions & 2 deletions src/mbgl/layermanager/line_layer_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ std::unique_ptr<Layout> LineLayerFactory::createLayout(const LayoutParameters& p
using namespace style;

using LayoutType = PatternLayout<LineBucket, LineLayerProperties, LinePattern, LineLayoutProperties>;
auto layout = std::make_unique<LayoutType>(parameters.bucketParameters, group, std::move(layer), parameters.imageDependencies);
auto&& layout = std::make_unique<LayoutType>(parameters.bucketParameters, group, std::move(layer), parameters.imageDependencies);

layout->template maybeApplySortKey<LineSortKey>();

return layout;
return std::move(layout);
}

std::unique_ptr<RenderLayer> LineLayerFactory::createRenderLayer(Immutable<style::Layer::Impl> impl) noexcept {
Expand Down

0 comments on commit 31e0c64

Please sign in to comment.