Import Geant4 10.5.0.beta source tree
This commit is contained in:
@@ -24,15 +24,14 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4NavigationHistory.icc 86527 2014-11-13 15:06:24Z gcosmo $
|
||||
// $Id: G4NavigationHistory.icc 110271 2018-05-17 14:41:15Z gcosmo $
|
||||
//
|
||||
//
|
||||
// class G4NavigationHistory Inline implementation
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
extern G4GEOM_DLL G4ThreadLocal
|
||||
G4Allocator<G4NavigationHistory> *aNavigHistoryAllocator;
|
||||
extern G4GEOM_DLL G4Allocator<G4NavigationHistory>*& aNavigHistoryAllocator();
|
||||
|
||||
// There is no provision that this class is subclassed.
|
||||
// If it is subclassed & new data members are added then the
|
||||
@@ -41,17 +40,17 @@ G4Allocator<G4NavigationHistory> *aNavigHistoryAllocator;
|
||||
inline
|
||||
void* G4NavigationHistory::operator new(size_t)
|
||||
{
|
||||
if (!aNavigHistoryAllocator)
|
||||
if (!aNavigHistoryAllocator())
|
||||
{
|
||||
aNavigHistoryAllocator = new G4Allocator<G4NavigationHistory>;
|
||||
aNavigHistoryAllocator() = new G4Allocator<G4NavigationHistory>;
|
||||
}
|
||||
return (void *) aNavigHistoryAllocator->MallocSingle();
|
||||
return (void *) aNavigHistoryAllocator()->MallocSingle();
|
||||
}
|
||||
|
||||
inline
|
||||
void G4NavigationHistory::operator delete(void *aHistory)
|
||||
{
|
||||
aNavigHistoryAllocator->FreeSingle((G4NavigationHistory *) aHistory);
|
||||
aNavigHistoryAllocator()->FreeSingle((G4NavigationHistory *) aHistory);
|
||||
}
|
||||
|
||||
inline
|
||||
|
||||
Reference in New Issue
Block a user