Skip to content
Snippets Groups Projects
Commit e78851eb authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

TBCondRunParTool: fix cppcheck uninitialized variable defects

parent 1b8e4bf9
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
#ifndef TBCONDRUNPAR_TBCONDRUNPARTOOL_H
......@@ -58,16 +58,16 @@ class TBCondRunParTool: public AthAlgTool {
bool extractCool(const int run);
bool extractCoolTest(const std::string& folder, int run) const;
int m_crun;
int m_cevent;
int m_crun{-1};
int m_cevent{-1};
std::string m_runpfolder;
// cached data
int m_status;
int m_run_number;
int m_trigger_type;
int m_det_mask;
int m_beam_type;
int m_beam_energy;
int m_status{-1};
int m_run_number{-1};
int m_trigger_type{-1};
int m_det_mask{-1};
int m_beam_type{-1};
int m_beam_energy{-1};
std::string m_file_tag;
std::string m_time_SOR;
};
......
/*
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
// TBCondRunParTool.cxx
......@@ -16,8 +16,7 @@ static const InterfaceID
TBCondRunParTool::TBCondRunParTool(const std::string& type,
const std::string&name, const IInterface* parent)
: AthAlgTool(type,name,parent),
m_crun(-1),m_cevent(-1),m_runpfolder("")
: AthAlgTool(type,name,parent)
{
declareInterface<TBCondRunParTool>(this);
declareProperty("RunParamFolder",m_runpfolder);
......
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