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 20:42:29 +0300 |
commit | 3afbfa2de74d26f1d9099a85cc1b6ed70251666f (patch) | |
tree | bb71b54e4badf6d71932e31fa89e4c7348c7a0cd /include | |
parent | f1ac757bd28351fd57113a1e16f6c2e00ab193c1 (diff) | |
download | qtlocation-mapboxgl-3afbfa2de74d26f1d9099a85cc1b6ed70251666f.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; } |