Skip to content

Commit c97ec17

Browse files
denniskleinguitargeek
authored andcommitted
[core] Deprecate TList(TObject*) for removal
This ctor has been "deprecated for 24 years" (#15451 (comment)) A discussion in #15451 concluded to use the modern deprecation procedure to properly announce its final removal.
1 parent 93526d4 commit c97ec17

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README/ReleaseNotes/v632/index.md

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ The following people have contributed to this new version:
2525
Enrico Guiraud, CERN/EP-SFT and Princeton,\
2626
Jonas Hahnfeld, CERN/EP-SFT,\
2727
Akeem Hart, Queen Mary University of London/DUNE and MINERvA,\
28+
Dennis Klein, GSI,\
2829
Sergey Linev, GSI,\
2930
Pere Mato, CERN/EP-SFT,\
3031
Lorenzo Moneta, CERN/EP-SFT,\
@@ -46,6 +47,7 @@ The following people have contributed to this new version:
4647
- ROOT does not longer support Python 2. The minimum required Python version to build ROOT is 3.8.
4748
- Support for wildcard imports like `from ROOT import *` is dropped from PyROOT
4849
- Support for external (ie. non-builtin) libAfterImage is now deprecated and it will be removed in next release 6.34.
50+
- The `TList::TList(TObject*)` constructor is deprecated and will be removed in ROOT 6.34
4951

5052
## Core Libraries
5153

core/cont/inc/TList.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ friend class TListIter;
7070
typedef TListIter Iterator_t;
7171

7272
TList() : fAscending(kTRUE) { }
73-
TList(TObject *) : fAscending(kTRUE) { } // for backward compatibility, don't use
73+
74+
TList(TObject *) R__DEPRECATED(6, 34, "The argument is ignored. Use the default constructor TList::TList().") : fAscending(kTRUE) { } // for backward compatibility, don't use
75+
7476
virtual ~TList();
7577
void Clear(Option_t *option="") override;
7678
void Delete(Option_t *option="") override;

0 commit comments

Comments
 (0)