Changeset 12858 for trunk/Mars


Ignore:
Timestamp:
02/06/12 20:23:32 (13 years ago)
Author:
tbretz
Message:
GetDataMember doesn't return offsets of pointers in root 5.32/00 -- replaced.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mbase/MParContainer.cc

    r11432 r12858  
    726726void *MParContainer::DataMember(const char *member)
    727727{
    728     const Long_t off = IsA()->GetDataMemberOffset(member);
    729     if (off>0)
    730         return reinterpret_cast<char*>(this)+off;
     728    TDataMember *m = IsA()->GetDataMember(member);
     729    if (m)
     730    {
     731        const Long_t off = m->GetOffset();
     732        if (off>0)
     733            return reinterpret_cast<char*>(this)+off;
     734    }
    731735
    732736    *fLog << err << "Data member '" << member << "' not found in " << GetDescriptor() << endl;
Note: See TracChangeset for help on using the changeset viewer.