Changeset View
Changeset View
Standalone View
Standalone View
src/EvtGenBase/EvtExtGeneratorCommandsTable.cpp
Show All 26 Lines | |||||
EvtExtGeneratorCommandsTable::~EvtExtGeneratorCommandsTable() | EvtExtGeneratorCommandsTable::~EvtExtGeneratorCommandsTable() | ||||
{ | { | ||||
_commandMap.clear(); | _commandMap.clear(); | ||||
} | } | ||||
EvtExtGeneratorCommandsTable* EvtExtGeneratorCommandsTable::getInstance() | EvtExtGeneratorCommandsTable* EvtExtGeneratorCommandsTable::getInstance() | ||||
{ | { | ||||
static EvtExtGeneratorCommandsTable* theCommandMap = 0; | static EvtExtGeneratorCommandsTable* theCommandMap = nullptr; | ||||
if ( theCommandMap == 0 ) { | if ( theCommandMap == nullptr ) { | ||||
theCommandMap = new EvtExtGeneratorCommandsTable(); | theCommandMap = new EvtExtGeneratorCommandsTable(); | ||||
} | } | ||||
return theCommandMap; | return theCommandMap; | ||||
} | } |