Skip to content

Duplicated class member names in ROOT classes #8189

Open
@linev

Description

@linev

There is fLineStyle member in TStyle class:

TString       fLineStyle[30];     ///< String describing line style i (for postScript)

At the same time there is fLineStyle in TAttLine class, which also base class for TStyle.

It makes problem to create JSON for such object - see #8181.
But also can make troubles in the future while:

root [0] TClass::GetClass("TStyle")->GetDataMemberOffset("fLineStyle")
(long) 74

This is offset for member from TAttLine class, but not from TStyle class.
Any attempt to write conversion I/O rules for such member fails because of this.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions