Changeset 19345 for trunk/Mars/mhist


Ignore:
Timestamp:
11/01/18 20:43:06 (6 years ago)
Author:
tbretz
Message:
Improves the behaviour with RecursiveRemove. Strictly speaking this change might only be necessary if a class contains more than one member which is bound to recursive remove. Onth other hand setting all members to NULL which might be affected by RecursiveRemove is not wrong either.
Location:
trunk/Mars/mhist
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mhist/MHCamEvent.cc

    r13398 r19345  
    127127{
    128128    if (fSum)
     129    {
    129130        delete fSum;
     131        fSum = 0;
     132    }
    130133}
    131134
  • trunk/Mars/mhist/MHCamera.cc

    r19304 r19345  
    203203{
    204204    if (fGeomCam)
    205       delete fGeomCam;
     205    {
     206        delete fGeomCam;
     207        fGeomCam = 0;
     208    }
    206209    if (fNotify)
    207       delete fNotify;
     210    {
     211        delete fNotify;
     212        fNotify = 0;
     213    }
    208214}
    209215
Note: See TracChangeset for help on using the changeset viewer.