Skip to content

Commit 93526d4

Browse files
denniskleinguitargeek
authored andcommitted
[gui] Fix TList construction in TGTable
The `TList::TList(TObject*)` ctor is marked as dont use for more than two decades. It looks like the intent of the code was to somehow initialize the content of the created lists, which no longer works as the passed argument is just discarded.
1 parent a73f11d commit 93526d4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

gui/gui/src/TGTable.cxx

+5-5
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,11 @@ TGTable::TGTable(const TGWindow *p, Int_t id, TVirtualTableInterface *interface,
162162
fCurrentRange = new TTableRange();
163163
fDataRange = new TTableRange();
164164
fGotoRange = new TTableRange();
165-
TGLayoutHints *hints = 0;
166-
fCellHintsList = new TList(hints);
167-
fRHdrHintsList = new TList(hints);
168-
fCHdrHintsList = new TList(hints);
169-
fMainHintsList = new TList(hints);
165+
166+
fCellHintsList = new TList();
167+
fRHdrHintsList = new TList();
168+
fCHdrHintsList = new TList();
169+
fMainHintsList = new TList();
170170

171171
// To be done: GetBackground colors for .rootrc
172172
SetBackgroundColor(GetWhitePixel());

0 commit comments

Comments
 (0)