From 653d8b73102708a57668b43ae4dc1d6f4311377e Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Thu, 30 May 2024 09:17:14 +0100 Subject: [PATCH] grid_view - delete assignment op --- include/mapnik/grid/grid_view.hpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/include/mapnik/grid/grid_view.hpp b/include/mapnik/grid/grid_view.hpp index 4cfa28736..ee13a90ac 100644 --- a/include/mapnik/grid/grid_view.hpp +++ b/include/mapnik/grid/grid_view.hpp @@ -97,22 +97,7 @@ class hit_grid_view , features_(rhs.features_) {} - hit_grid_view& operator=(hit_grid_view const& rhs) - { - if (&rhs == this) - return *this; - x_ = rhs.x_; - y_ = rhs.y_; - width_ = rhs.width_; - height_ = rhs.height_; - data_ = rhs.data_; - key_ = rhs.key_; - id_name_ = rhs.id_name_; - names_ = rhs.names_; - f_keys_ = rhs.f_keys_; - features_ = rhs.features_; - return *this; - } + hit_grid_view& operator=(hit_grid_view const& rhs) = delete; inline unsigned x() const { return x_; }