From 6494951a96f7e6e9889a97bd926d15a3cdd7b4b9 Mon Sep 17 00:00:00 2001 From: Stan Seibert Date: Fri, 1 Feb 2013 10:15:48 -0500 Subject: Add virtual destructors to ROOT data classes to silence compiler warnings. --- chroma/io/root.C | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/chroma/io/root.C b/chroma/io/root.C index 9e7ef39..7b07b4e 100644 --- a/chroma/io/root.C +++ b/chroma/io/root.C @@ -4,6 +4,8 @@ #include struct Vertex { + virtual ~Vertex() { }; + std::string particle_name; TVector3 pos; TVector3 dir; @@ -15,6 +17,8 @@ struct Vertex { }; struct Photon { + virtual ~Photon() { }; + double t; TVector3 pos; TVector3 dir; @@ -28,6 +32,8 @@ struct Photon { struct Channel { Channel() : id(-1), t(-1e9), q(-1e9) { }; + virtual ~Channel() { }; + int id; double t; double q; @@ -37,6 +43,8 @@ struct Channel { }; struct Event { + virtual ~Event() { }; + int id; unsigned int nhit; unsigned int nchannels; -- cgit