Changeset 267 in Idarraga


Ignore:
Timestamp:
Mar 8, 2012, 11:50:09 AM (12 years ago)
Author:
idarraga
Message:

pointer to void cases problems here

File:
1 edited

Legend:

Unmodified
Added
Removed
  • allpix/include/AllPixTrackerHit.hh

    r62 r267  
    5959  inline void  operator delete(void*);
    6060 
    61   void Draw();
     61  //void Draw();
    6262  void Print();
    6363 
     
    128128inline void* AllPixTrackerHit::operator new(size_t)
    129129{
    130   void *aHit;
    131   aHit = (void *) AllPixTrackerHitAllocator.MallocSingle();
    132   return aHit;
     130  //void *aHit;
     131  //aHit = (void *) AllPixTrackerHitAllocator.MallocSingle();
     132
     133        AllPixTrackerHit * aHit;
     134        aHit = static_cast<AllPixTrackerHit*>(AllPixTrackerHitAllocator.MallocSingle());
     135        return aHit;
    133136}
    134137
Note: See TracChangeset for help on using the changeset viewer.