summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2017-07-11 15:16:06 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2017-07-12 16:41:15 +0300
commit54f8ec966c9c97543cf70dd6553473b26989efac (patch)
treea01180b017e0150fe3e31e70eada7912dba320a1 /include
parentca5ab627b5b00532f05d04af8fc583ad30c028e3 (diff)
downloadqtlocation-mapboxgl-54f8ec966c9c97543cf70dd6553473b26989efac.tar.gz
[core] GCC 4.9 shadow member warnings
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/util/image.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/mbgl/util/image.hpp b/include/mbgl/util/image.hpp
index 91bf06d727..cb28f3da8d 100644
--- a/include/mbgl/util/image.hpp
+++ b/include/mbgl/util/image.hpp
@@ -66,9 +66,9 @@ public:
template <typename T = Image>
T clone() const {
- T copy(size);
- std::copy(data.get(), data.get() + bytes(), copy.data.get());
- return copy;
+ T copy_(size);
+ std::copy(data.get(), data.get() + bytes(), copy_.data.get());
+ return copy_;
}
size_t stride() const { return channels * size.width; }