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