Skip to content

Commit bca8c1a

Browse files
hageboeckjblomer
andauthored
Apply suggestions from code review
Co-authored-by: Jakob Blomer <jblomer@cern.ch>
1 parent 458d772 commit bca8c1a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tree/treeplayer/src/TSelectorDraw.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,8 @@ void TSelectorDraw::Begin(TTree *tree)
471471
}
472472

473473
// Decode varexp and selection
474-
if (!CompileVariables(varexp.data(), realSelection.GetTitle())) {
475-
abrt.Form("Variable compilation failed: {%s,%s}", varexp.data(), realSelection.GetTitle());
474+
if (!CompileVariables(varexp.c_str(), realSelection.GetTitle())) {
475+
abrt.Form("Variable compilation failed: {%s,%s}", varexp.c_str(), realSelection.GetTitle());
476476
Abort(abrt);
477477
return;
478478
}
@@ -488,7 +488,7 @@ void TSelectorDraw::Begin(TTree *tree)
488488
// In case fOldHistogram exists, check dimensionality
489489
Int_t nsel = strlen(selection);
490490
if (nsel > 1) {
491-
htitle.Form("%s {%s}", varexp.data(), selection);
491+
htitle.Form("%s {%s}", varexp.c_str(), selection);
492492
} else {
493493
htitle = varexp;
494494
}

0 commit comments

Comments
 (0)