From 5b5913612b47929056269aa4e91514d8541284ab Mon Sep 17 00:00:00 2001
From: scott snyder <sss@karma>
Date: Tue, 7 Jul 2020 18:43:57 +0200
Subject: [PATCH] GeoModelExamples: Fix clang 10 warnings.

If a dtor is declared final, the class itself should also be declared final.
---
 .../GeoModel/GeoModelExamples/src/CentralScrutinizer.h        | 4 ++--
 .../GeoModel/GeoModelExamples/src/ForwardScrutinizer.h        | 4 ++--
 .../GeoModel/GeoModelExamples/src/ToyDetectorTool.h           | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/DetectorDescription/GeoModel/GeoModelExamples/src/CentralScrutinizer.h b/DetectorDescription/GeoModel/GeoModelExamples/src/CentralScrutinizer.h
index 4b08feb084e..965152d5020 100755
--- a/DetectorDescription/GeoModel/GeoModelExamples/src/CentralScrutinizer.h
+++ b/DetectorDescription/GeoModel/GeoModelExamples/src/CentralScrutinizer.h
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
 */
 
 #ifndef CentralScrutinizer_h
@@ -10,7 +10,7 @@
     #include "Identifier/Identifier.h"
 #endif
 
-class CentralScrutinizer : public GeoVDetectorElement
+class CentralScrutinizer final : public GeoVDetectorElement
 {
  public:
   CentralScrutinizer(const GeoVFullPhysVol *fullPhysVol);
diff --git a/DetectorDescription/GeoModel/GeoModelExamples/src/ForwardScrutinizer.h b/DetectorDescription/GeoModel/GeoModelExamples/src/ForwardScrutinizer.h
index e9ad0b340a8..ab22e33ec5f 100755
--- a/DetectorDescription/GeoModel/GeoModelExamples/src/ForwardScrutinizer.h
+++ b/DetectorDescription/GeoModel/GeoModelExamples/src/ForwardScrutinizer.h
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
 */
 
 #ifndef ForwardScrutinizer_h
@@ -10,7 +10,7 @@
     #include "Identifier/Identifier.h"
 #endif
 
-class ForwardScrutinizer : public GeoVDetectorElement
+class ForwardScrutinizer final : public GeoVDetectorElement
 {
  public:
   ForwardScrutinizer(const GeoVFullPhysVol *fullPhysVol);
diff --git a/DetectorDescription/GeoModel/GeoModelExamples/src/ToyDetectorTool.h b/DetectorDescription/GeoModel/GeoModelExamples/src/ToyDetectorTool.h
index 029f63c49fc..bcc2c2a1992 100755
--- a/DetectorDescription/GeoModel/GeoModelExamples/src/ToyDetectorTool.h
+++ b/DetectorDescription/GeoModel/GeoModelExamples/src/ToyDetectorTool.h
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
 */
 
 #ifndef GEOMODELEXAMPLES_TOYDETECTORTOOL_H
@@ -10,7 +10,7 @@
 #include "GeoModelUtilities/GeoModelTool.h"
 #include "GeoModelKernel/GeoPVConstLink.h"
 
-class ToyDetectorTool : public GeoModelTool 
+class ToyDetectorTool final : public GeoModelTool 
 {
  public:
   ToyDetectorTool( const std::string& type, const std::string& name, const IInterface* parent );
-- 
GitLab