Changeset 849


Ignore:
Timestamp:
06/13/01 12:48:40 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

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

    r848 r849  
    9292void MParContainer::Copy(TObject &obj)
    9393{
     94    MParContainer &cont = (MParContainer&)obj;
     95
    9496    TObject::Copy(obj);
    95     *(((MParContainer&)obj).fName)  = *fName;
    96     *(((MParContainer&)obj).fTitle) = *fTitle;
    97     ((MParContainer&)obj).fLog   = fLog;
    98     ((MParContainer&)obj).fHasChanged = fHasChanged;
     97
     98    *cont.fName  = *fName;
     99    *cont.fTitle = *fTitle;
     100
     101    cont.fLog        = fLog;
     102    cont.fHasChanged = fHasChanged;
    99103}
    100104
  • trunk/MagicSoft/Mars/mgui/MHexagon.cc

    r749 r849  
    7070void MHexagon::Copy( TObject &obj )
    7171{
    72   //     copy this hexagon to hexagon
    73     TObject::Copy  ( obj ) ;
    74     TAttLine::Copy (((MHexagon&) obj ) ) ;
    75     TAttFill::Copy (((MHexagon&) obj ) ) ;
    76 
    77     ((MHexagon&) obj).fX = fX ;
    78     ((MHexagon&) obj).fY = fY ;
    79     ((MHexagon&) obj).fD = fD ;
     72    //     copy this hexagon to hexagon
     73    MHexagon &hex = (MHexagon&) obj;
     74
     75    TObject::Copy(obj);
     76    TAttLine::Copy(hex);
     77    TAttFill::Copy(hex);
     78
     79    hex.fX = fX ;
     80    hex.fY = fY ;
     81    hex.fD = fD ;
    8082}
    8183Int_t MHexagon::DistancetoPrimitive( Int_t px, Int_t py )
Note: See TracChangeset for help on using the changeset viewer.