Skip to content

Commit

Permalink
eliminate 'new' clause
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuan CHAO committed Jul 7, 2023
1 parent 4b6323e commit 3097d89
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions CondFormats/JetMETObjects/src/JetResolutionObject.cc
Original file line number Diff line number Diff line change
Expand Up @@ -420,10 +420,7 @@ namespace JME {
return 1;

#ifndef STANDALONE
reco::FormulaEvaluator* Formula = new reco::FormulaEvaluator(m_definition.getFormulaString());
if (!Formula)
return 1;
auto formula = *Formula;
reco::FormulaEvaluator formula = reco::FormulaEvaluator(m_definition.getFormulaString());
#else
// Set parameters
auto const* pFormula = m_definition.getFormula();
Expand Down

0 comments on commit 3097d89

Please sign in to comment.