Skip to content
Snippets Groups Projects
Commit de9ab00c authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Fix (false?) dangling pointer warning

parent 432b2972
No related branches found
No related tags found
1 merge request!1403Fix gcc12 warnings
Pipeline #4823637 passed
......@@ -33,10 +33,9 @@ namespace GaudiTesting {
using GaudiAlgorithm::GaudiAlgorithm;
~DestructorCheckAlg() override {
// do not print messages if we are created in genconf
const std::string cmd = System::cmdLineArgs()[0];
if ( cmd.find( "genconf" ) != std::string::npos ) return;
std::cout << "Destructor of " << name() << std::endl;
if ( System::cmdLineArgs()[0].find( "genconf" ) == std::string::npos ) {
std::cout << "Destructor of " << name() << std::endl;
}
}
StatusCode execute() override {
info() << "Executing " << name() << endmsg;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment