From 92ee998de6ea7aab3597d646c1cec56557c890f4 Mon Sep 17 00:00:00 2001 From: Frank Winklmeier <frank.winklmeier@cern.ch> Date: Mon, 10 Jul 2023 18:18:06 +0200 Subject: [PATCH] TrigRoiDescriptor: use virtual/override and final where applicable --- .../TrigSteeringEvent/TrigRoiDescriptor.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Trigger/TrigEvent/TrigSteeringEvent/TrigSteeringEvent/TrigRoiDescriptor.h b/Trigger/TrigEvent/TrigSteeringEvent/TrigSteeringEvent/TrigRoiDescriptor.h index f7cc6450a694..8578e5656a04 100644 --- a/Trigger/TrigEvent/TrigSteeringEvent/TrigSteeringEvent/TrigRoiDescriptor.h +++ b/Trigger/TrigEvent/TrigSteeringEvent/TrigSteeringEvent/TrigRoiDescriptor.h @@ -1,6 +1,6 @@ // emacs: this is -*- c++ -*- /* - Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration */ // // @file TrigRoiDescriptor.h @@ -10,7 +10,6 @@ // // @author sutt@cern.ch // -// $Id: TrigRoiDescriptor.h, v0.1 Fri 08 Jun 2013 23:52:09 CEST sutt $ /// nope - should be used for standalone also, perhaps need to @@ -125,13 +124,13 @@ public: TrigRoiDescriptor& operator=( const IRoiDescriptor& roi ); // Destructor - ~TrigRoiDescriptor(); + virtual ~TrigRoiDescriptor(); - unsigned int roiId() const { return m_roiId; } - unsigned int l1Id() const { return m_l1Id; } - unsigned int roiWord() const { return m_roiWord; } + virtual unsigned int roiId() const override final { return m_roiId; } + virtual unsigned int l1Id() const override final { return m_l1Id; } + virtual unsigned int roiWord() const override final { return m_roiWord; } - operator std::string() const; + virtual operator std::string() const override; protected: -- GitLab