Ignore:
Timestamp:
Jan 5, 2011, 12:19:12 PM (13 years ago)
Author:
garnier
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/management/include/G4VisListManager.hh

    r1346 r1348  
    2424// ********************************************************************
    2525//
    26 // $Id: G4VisListManager.hh,v 1.8 2006/06/29 21:29:04 gunter Exp $
     26// $Id: G4VisListManager.hh,v 1.9 2010/12/11 17:01:25 allison Exp $
    2727// GEANT4 tag $Name:  $
    2828//
     
    9494  assert (0 != ptr);
    9595
    96   typename std::map<G4String, T*>::const_iterator iter = fMap.find(ptr->Name());
    97  
    98   if (iter == fMap.end()) {
    99     fMap[ptr->Name()] = ptr;
    100     fpCurrent = ptr;   
    101   }
    102   else {
    103     std::ostringstream o;
    104     o << "Key "<<ptr->Name()<<" already registered";
    105     G4Exception
    106       ("G4VisListManager<T>::Register(T* ptr) ",
    107        "KeyExists", FatalErrorInArgument, o.str().c_str());
    108   }
     96  // Add to map.  Replace if name the same.
     97  fMap[ptr->Name()] = ptr;
     98  fpCurrent = ptr;   
    10999}
    110100
Note: See TracChangeset for help on using the changeset viewer.