diff --git a/GeoModelCore/GeoModelKernel/GeoModelKernel/GeoRectSurface.h b/GeoModelCore/GeoModelKernel/GeoModelKernel/GeoRectSurface.h index c5a9935c961c2f8d412c0e43279f18995ba9d1ca..1e95164c180e18da82854fa3c50942bc02373f48 100644 --- a/GeoModelCore/GeoModelKernel/GeoModelKernel/GeoRectSurface.h +++ b/GeoModelCore/GeoModelKernel/GeoModelKernel/GeoRectSurface.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration */ /* @@ -36,11 +36,11 @@ class GeoRectSurface : public GeoVSurfaceShape return m_yHalfLength; } - virtual const std::string & type () const{ + virtual const std::string & type () const override final{ return s_classType; } - virtual ShapeType typeID () const{ + virtual ShapeType typeID () const override final{ return s_classTypeID; } diff --git a/GeoModelCore/GeoModelKernel/GeoModelKernel/GeoTrapezoidSurface.h b/GeoModelCore/GeoModelKernel/GeoModelKernel/GeoTrapezoidSurface.h index 91a16c8dc2804c2fb2d84d0e07368693872999bc..8dc31bd88b953296807e5cda6e9681a73de68453 100644 --- a/GeoModelCore/GeoModelKernel/GeoModelKernel/GeoTrapezoidSurface.h +++ b/GeoModelCore/GeoModelKernel/GeoModelKernel/GeoTrapezoidSurface.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration */ /* @@ -42,11 +42,11 @@ class GeoTrapezoidSurface : public GeoVSurfaceShape return m_yHalfLength; } - virtual const std::string & type () const{ + virtual const std::string & type () const override final{ return s_classType; } - virtual ShapeType typeID () const{ + virtual ShapeType typeID () const override final{ return s_classTypeID; }