Skip to content

Commit

Permalink
Save twice an allocation of shared pointers using the make_shared sta…
Browse files Browse the repository at this point in the history
…tement
  • Loading branch information
forthommel committed May 17, 2017
1 parent 897ebd3 commit 57dbdeb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ edm::ESProducts< std::shared_ptr<TotemDAQMapping>, std::shared_ptr<TotemAnalysis
{
assert(currentBlockValid);

std::shared_ptr<TotemDAQMapping> mapping(new TotemDAQMapping());
std::shared_ptr<TotemAnalysisMask> mask(new TotemAnalysisMask());
auto mapping = std::make_shared<TotemDAQMapping>();
auto mask = std::make_shared<TotemAnalysisMask>();

// initialize Xerces
try
Expand Down

0 comments on commit 57dbdeb

Please sign in to comment.