From 6adf62ec5aa9c72fe5ca8c28753289e7bc1197d0 Mon Sep 17 00:00:00 2001 From: artemp Date: Thu, 20 Nov 2014 15:08:07 +0100 Subject: [PATCH] image_data : remove unused owns_data_ field --- include/mapnik/image_data.hpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/mapnik/image_data.hpp b/include/mapnik/image_data.hpp index f53f556f3..2d581f4a5 100644 --- a/include/mapnik/image_data.hpp +++ b/include/mapnik/image_data.hpp @@ -76,8 +76,7 @@ public: : width_(width), height_(height), buffer_(width_ * height_ * pixel_size), - pData_(reinterpret_cast(buffer_.data())), - owns_data_(true) + pData_(reinterpret_cast(buffer_.data())) { if (pData_ && initialize) std::fill(pData_, pData_ + width_ * height_, 0); } @@ -86,8 +85,8 @@ public: : width_(rhs.width_), height_(rhs.height_), buffer_(rhs.buffer_), - pData_(reinterpret_cast(buffer_.data())), - owns_data_(true) {} + pData_(reinterpret_cast(buffer_.data())) + {} image_data(image_data && rhs) noexcept : width_(rhs.width_), @@ -181,7 +180,6 @@ private: std::size_t height_; detail::buffer buffer_; pixel_type *pData_; - bool owns_data_; }; using image_data_32 = image_data;