summaryrefslogtreecommitdiff
path: root/include/mbgl/util
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2017-05-09 10:50:04 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2017-05-12 18:07:36 +0300
commit870067360f8195cadf2e1953ac20a56a44377f9f (patch)
tree084b04252cbb7bfcac184d123008ea63ca33adaf /include/mbgl/util
parentbaeaad83a3a3e00460b28a0afded18b8f1b83efc (diff)
downloadqtlocation-mapboxgl-870067360f8195cadf2e1953ac20a56a44377f9f.tar.gz
[tidy] modernize-pass-by-value
Diffstat (limited to 'include/mbgl/util')
-rw-r--r--include/mbgl/util/range.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/mbgl/util/range.hpp b/include/mbgl/util/range.hpp
index f7fa92eb8b..5591a22a1f 100644
--- a/include/mbgl/util/range.hpp
+++ b/include/mbgl/util/range.hpp
@@ -1,3 +1,5 @@
+#include <utility>
+
#pragma once
namespace mbgl {
@@ -5,8 +7,8 @@ namespace mbgl {
template <class T>
class Range {
public:
- constexpr Range(const T& min_, const T& max_)
- : min(min_), max(max_) {}
+ constexpr Range(T min_, T max_)
+ : min(std::move(min_)), max(std::move(max_)) {}
T min;
T max;