Skip to content

Commit

Permalink
Merge pull request #40317 from smuzaffar/pgo-fix-nullptr-use
Browse files Browse the repository at this point in the history
Typo: Fix the correct object to Clone
  • Loading branch information
cmsbuild authored Dec 15, 2022
2 parents 63c5e94 + 9524326 commit 52e403e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PhysicsTools/FWLite/interface/Scanner.h
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ namespace fwlite {
if (htemplate != nullptr) {
if ((strcmp(hname, "htemp") == 0) && (strcmp(hname, htemplate->GetName()) != 0))
htempDelete();
hist = (TProfile *)hist->Clone(hname);
hist = (TProfile *)htemplate->Clone(hname);
} else if (drawopt.Contains("SAME", TString::kIgnoreCase)) {
hist = getSameProf(hname);
}
Expand Down Expand Up @@ -463,7 +463,7 @@ namespace fwlite {
if (htemplate != nullptr) {
if ((strcmp(hname, "htemp") == 0) && (strcmp(hname, htemplate->GetName()) != 0))
htempDelete();
hist = (TH2 *)hist->Clone(hname);
hist = (TH2 *)htemplate->Clone(hname);
} else if (drawopt.Contains("SAME", TString::kIgnoreCase)) {
hist = getSameH2(hname);
}
Expand Down

0 comments on commit 52e403e

Please sign in to comment.