diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2020-04-19 21:10:12 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2020-04-20 14:37:24 +0300 |
commit | f856396131bdacd1594e6a732cb9422f43d7e211 (patch) | |
tree | a3539c289a084a14d68bd176110daed6fbba099e /src/mbgl/gl/program.hpp | |
parent | ad543e43556dc350b7c30f510439f85a3be424a6 (diff) | |
download | qtlocation-mapboxgl-f856396131bdacd1594e6a732cb9422f43d7e211.tar.gz |
[core] Fix -Werror={pessimizing,redundant}-move from GCC 9
Diffstat (limited to 'src/mbgl/gl/program.hpp')
-rw-r--r-- | src/mbgl/gl/program.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mbgl/gl/program.hpp b/src/mbgl/gl/program.hpp index 6cfe05bf54..dbac6841f4 100644 --- a/src/mbgl/gl/program.hpp +++ b/src/mbgl/gl/program.hpp @@ -72,9 +72,7 @@ public: (programs::gl::shaderSource() + programs::gl::fragmentPreludeOffset), (programs::gl::shaderSource() + fragmentOffset) }; - auto result = std::make_unique<Instance>(context, vertexSource, fragmentSource); - - return std::move(result); + return std::make_unique<Instance>(context, vertexSource, fragmentSource); } UniqueProgram program; |