Commit 3291911
committed
[Tree] Delete virtual copy and copy assignment methods in TTree
The `TTree` class already deletes the copy constructor and the copy
assignment, but users might still be tempted to use the virtual copy
constructor or copy assignment provided by `TObject::Clone()` and
`TObject::Copy()`. But these implementations also make no sense to the
TTree.
To avoid user confusion, this commit suggests to override these methods
in TTree such that they thow an exception and tell you what to use
instead.
Prevents reports this one in the future:
* https://its.cern.ch/jira/browse/ROOT-91111 parent 555c195 commit 3291911
File tree
5 files changed
+18
-7
lines changed- bindings/pyroot/pythonizations/test
- io/io/src
- roofit/roofitcore/src
- tree/tree
- inc
- src
5 files changed
+18
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
| |||
112 | 111 | | |
113 | 112 | | |
114 | 113 | | |
115 | | - | |
116 | | - | |
117 | 114 | | |
118 | 115 | | |
119 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
533 | | - | |
| 533 | + | |
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
| 372 | + | |
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
355 | 358 | | |
356 | 359 | | |
357 | 360 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1060 | 1060 | | |
1061 | 1061 | | |
1062 | 1062 | | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
1063 | 1074 | | |
1064 | 1075 | | |
1065 | 1076 | | |
| |||
3205 | 3216 | | |
3206 | 3217 | | |
3207 | 3218 | | |
3208 | | - | |
| 3219 | + | |
3209 | 3220 | | |
3210 | 3221 | | |
3211 | 3222 | | |
| |||
0 commit comments