From 1cd924f16f2611bf2865d222f9048a3d564134f023dfd2df0722ac8fecf0a2de Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Wed, 6 Aug 2025 03:32:14 -0400 Subject: [PATCH] Some defaulted ctor/dtors. --- dw/image.cc | 9 --------- dw/image.hh | 6 ++---- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/dw/image.cc b/dw/image.cc index 1fcdbb3..6582c8f 100644 --- a/dw/image.cc +++ b/dw/image.cc @@ -31,15 +31,6 @@ namespace dw { using namespace lout; -ImageMapsList::ImageMap::ImageMap () -{ - defaultLink = -1; -} - -ImageMapsList::ImageMap::~ImageMap () -{ -} - void ImageMapsList::ImageMap::draw (core::View *view,core::style::Style *style, int x, int y) { diff --git a/dw/image.hh b/dw/image.hh index d85918d..e236703 100644 --- a/dw/image.hh +++ b/dw/image.hh @@ -34,11 +34,9 @@ private: }; std::list< std::unique_ptr< ShapeAndLink > > shapesAndLinks; - int defaultLink; - public: - ImageMap (); - ~ImageMap (); + int defaultLink= -1; + public: void draw (core::View *view, core::style::Style *style, int x, int y); void add (core::Shape *shape, int link); void setDefaultLink (int link) { defaultLink = link; };