diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-07-11 15:16:06 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-07-12 16:41:15 +0300 |
commit | 54f8ec966c9c97543cf70dd6553473b26989efac (patch) | |
tree | a01180b017e0150fe3e31e70eada7912dba320a1 /include | |
parent | ca5ab627b5b00532f05d04af8fc583ad30c028e3 (diff) | |
download | qtlocation-mapboxgl-54f8ec966c9c97543cf70dd6553473b26989efac.tar.gz |
[core] GCC 4.9 shadow member warnings
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/util/image.hpp | 6 |
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; } |