From 8db9d2fc5f72560c5e5dcda888973d3638bec4e2 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Wed, 27 Feb 2019 16:18:12 +0100 Subject: [PATCH] [A/FileIO/SHPInterface] Add final + explicit. --- Applications/FileIO/SHPInterface.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Applications/FileIO/SHPInterface.h b/Applications/FileIO/SHPInterface.h index cdcc554bbe2..60f26e0a320 100644 --- a/Applications/FileIO/SHPInterface.h +++ b/Applications/FileIO/SHPInterface.h @@ -40,7 +40,7 @@ namespace FileIO /** * \brief Manages the import of ESRI shape files into GeoLib. */ -class SHPInterface +class SHPInterface final { public: /// Connection between ESRI type system for shape files and OGS GeoLib. @@ -54,7 +54,10 @@ public: }; /// Constructor - SHPInterface(GeoLib::GEOObjects& geoObjects) : _geoObjects(geoObjects) {} + explicit SHPInterface(GeoLib::GEOObjects& geoObjects) + : _geoObjects(geoObjects) + { + } /// Reads the header of the shape file. bool readSHPInfo(const std::string &filename, int &shapeType, int &numberOfEntities); -- GitLab