Skip to content
Snippets Groups Projects
Commit 6c42b9ae authored by Edward Moyse's avatar Edward Moyse
Browse files

Merge branch 'cppcheck.CaloRec-20210319' into 'master'

CaloRec: Fix cppcheck warnings.

See merge request !41763
parents 4634d66e f64c0f82
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!41763CaloRec: Fix cppcheck warnings.
...@@ -70,7 +70,7 @@ t3333->Draw("(TimeTotal-TimeSum)/1000"); ...@@ -70,7 +70,7 @@ t3333->Draw("(TimeTotal-TimeSum)/1000");
MyC5->Print("CBNTdump.ps)"); MyC5->Print("CBNTdump.ps)");
if (hfile) hfile->Close(); hfile->Close();
} }
...@@ -324,8 +324,7 @@ fclose(fich); ...@@ -324,8 +324,7 @@ fclose(fich);
hfile->Write(); hfile->Write();
if (hfile) hfile->Close();
hfile->Close();
} }
void CaloRec_makeHist() void CaloRec_makeHist()
......
/* /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/ */
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
...@@ -57,11 +57,13 @@ public: ...@@ -57,11 +57,13 @@ public:
reference operator*() reference operator*()
{ {
// cppcheck-suppress returnTempReference; false positive
return reinterpret_cast<reference> (pointer_list::iterator::operator*()); return reinterpret_cast<reference> (pointer_list::iterator::operator*());
} }
reference operator->() reference operator->()
{ {
// cppcheck-suppress returnTempReference; false positive
return reinterpret_cast<reference> (pointer_list::iterator::operator*()); return reinterpret_cast<reference> (pointer_list::iterator::operator*());
} }
}; };
......
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