From 7a9b961b0d5fe237e55af1b52c9bb4c9e98ccfe6 Mon Sep 17 00:00:00 2001 From: Juan Miguel Carceller <22276694+jmcarcell@users.noreply.github.com> Date: Mon, 9 Dec 2024 11:52:23 +0100 Subject: [PATCH] Mark the DataHandle and DataWrapper destructors with override (#263) * Mark the DataHandle and DataWrapper destructor with override * Remove virtual Co-authored-by: jmcarcell Co-authored-by: Mateusz Jakub Fila <37295697+m-fila@users.noreply.github.com> --- k4FWCore/include/k4FWCore/DataHandle.h | 2 +- k4FWCore/include/k4FWCore/DataWrapper.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/k4FWCore/include/k4FWCore/DataHandle.h b/k4FWCore/include/k4FWCore/DataHandle.h index 8dfd31af..a3803550 100644 --- a/k4FWCore/include/k4FWCore/DataHandle.h +++ b/k4FWCore/include/k4FWCore/DataHandle.h @@ -39,7 +39,7 @@ template class DataHandle : public DataObjectHandle> public: DataHandle(); - ~DataHandle(); + ~DataHandle() override; /// Initialises mother class DataHandle(DataObjID& descriptor, Gaudi::DataHandle::Mode a, IDataHandleHolder* fatherAlg); diff --git a/k4FWCore/include/k4FWCore/DataWrapper.h b/k4FWCore/include/k4FWCore/DataWrapper.h index 59511bc3..6042f4d4 100644 --- a/k4FWCore/include/k4FWCore/DataWrapper.h +++ b/k4FWCore/include/k4FWCore/DataWrapper.h @@ -21,7 +21,6 @@ #include -// Include files #include "GaudiKernel/DataObject.h" #include "podio/CollectionBase.h" @@ -50,7 +49,7 @@ template class GAUDI_API DataWrapper : public DataWrapperBase { uptr.release(); is_owner = false; } - virtual ~DataWrapper(); + ~DataWrapper() override; const T* getData() const { return m_data; } void setData(const T* data) { m_data = data; }