Skip to content

Commit

Permalink
suppress some cppcheck errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tkittel committed Sep 10, 2024
1 parent 8c2afa3 commit e1607c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ SimpleHists::HistCollection::HistCollection( AutoSave_t, const std::string& file
SimpleHists::HistCollection::~HistCollection()
{
if ( !m_autosavefilename.empty() ) {
saveToFile(m_autosavefilename,true);
saveToFile(m_autosavefilename,true); // cppcheck-suppress throwInNoexceptFunction
std::cout<<"Saved SimpleHists collection to "<<m_autosavefilename<<std::endl;
}
clear();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ SimpleHists::AutoBinHist1D::AutoBinHist1D(Hist1D* h, size_t nwait)

SimpleHists::AutoBinHist1D::~AutoBinHist1D()
{
if (!m_db.empty()) flush();
if (!m_db.empty()) flush(); // cppcheck-suppress throwInNoexceptFunction

}

void SimpleHists::AutoBinHist1D::autoFit( double percentile )
Expand Down

0 comments on commit e1607c3

Please sign in to comment.