Skip to content

Commit 34bc87d

Browse files
committed
Fixes to checker warnings
1 parent f6dadda commit 34bc87d

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

PWGLF/Tasks/Nuspex/hadronnucleicorrelation.cxx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,16 +168,16 @@ struct HadronNucleiCorrelation {
168168
std::vector<std::shared_ptr<TH3>> hCorrEtaPhi_SE;
169169
std::vector<std::shared_ptr<TH3>> hCorrEtaPhi_ME;
170170

171-
int nBinspT;
172-
TH2F* hEffpTEta_proton;
173-
TH2F* hEffpTEta_antiproton;
174-
TH2F* hEffpTEta_deuteron;
175-
TH2F* hEffpTEta_antideuteron;
171+
int nBinspT = 0;
172+
TH2F* hEffpTEta_proton = nullptr;
173+
TH2F* hEffpTEta_antiproton = nullptr;
174+
TH2F* hEffpTEta_deuteron = nullptr;
175+
TH2F* hEffpTEta_antideuteron = nullptr;
176176

177-
Service<o2::ccdb::BasicCCDBManager> ccdb;
177+
Service<o2::ccdb::BasicCCDBManager> ccdb{};
178178
o2::ccdb::CcdbApi ccdbApi;
179179

180-
Service<o2::framework::O2DatabasePDG> pdgDB;
180+
Service<o2::framework::O2DatabasePDG> pdgDB{};
181181

182182
void init(o2::framework::InitContext&)
183183
{
@@ -239,6 +239,8 @@ struct HadronNucleiCorrelation {
239239
case kPPbar:
240240
name = "PrAntiPr";
241241
break;
242+
default:
243+
LOG(fatal) << "Unhandled case " << mode;
242244
}
243245

244246
if (!isMC) {

0 commit comments

Comments
 (0)