From bacb84ca39d834cace4c3d81b2373d148f1ad0bd Mon Sep 17 00:00:00 2001 From: matta <matta@npt> Date: Mon, 11 Feb 2013 14:34:59 +0000 Subject: [PATCH] * Fixing warning on some machine - NPReaction: The Cint Dict generation need the destructor to be of type virtual to be overloaded safely by the dictionnary - TSharcPhysics: Some variable embeded in if statement migth be used uninitialised from a compilation point of view. --- NPLib/Physics/NPReaction.h | 4 ++-- NPLib/Sharc/TSharcPhysics.cxx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NPLib/Physics/NPReaction.h b/NPLib/Physics/NPReaction.h index b8aca5c9c..969e6ba3e 100644 --- a/NPLib/Physics/NPReaction.h +++ b/NPLib/Physics/NPReaction.h @@ -57,8 +57,8 @@ namespace NPL{ class Reaction{ public: // Constructors and Destructors - Reaction(); - ~Reaction(); + Reaction(); + virtual ~Reaction(); public: // Various Method void ReadConfigurationFile(string Path); diff --git a/NPLib/Sharc/TSharcPhysics.cxx b/NPLib/Sharc/TSharcPhysics.cxx index 2d3ead7d3..915c40fc4 100644 --- a/NPLib/Sharc/TSharcPhysics.cxx +++ b/NPLib/Sharc/TSharcPhysics.cxx @@ -439,6 +439,7 @@ void TSharcPhysics::ReadConfiguration(string Path) string DataBuffer ; double R,Phi,Z; + R = 0 ; Phi = 0 ; Z = 0; TVector3 Pos; bool check_R = false ; bool check_Phi = false ; -- GitLab