summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/program.hpp
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2020-04-19 21:10:12 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2020-04-20 14:37:24 +0300
commitf856396131bdacd1594e6a732cb9422f43d7e211 (patch)
treea3539c289a084a14d68bd176110daed6fbba099e /src/mbgl/gl/program.hpp
parentad543e43556dc350b7c30f510439f85a3be424a6 (diff)
downloadqtlocation-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.hpp4
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;