Changeset View
Changeset View
Standalone View
Standalone View
src/EvtGenBase/EvtDecayBase.cpp
Show First 20 Lines • Show All 615 Lines • ▼ Show 20 Lines | while ( str[i] != 0 ) { | ||||
if ( isalpha( str[i] ) && str[i] != 'e' ) { | if ( isalpha( str[i] ) && str[i] != 'e' ) { | ||||
EvtGenReport( EVTGEN_INFO, "EvtGen" ) | EvtGenReport( EVTGEN_INFO, "EvtGen" ) | ||||
<< "String " << str << " is not a number" << endl; | << "String " << str << " is not a number" << endl; | ||||
assert( 0 ); | assert( 0 ); | ||||
} | } | ||||
i++; | i++; | ||||
} | } | ||||
char** tc = 0; | char** tc = nullptr; | ||||
double result = strtod( _args[j].c_str(), tc ); | double result = strtod( _args[j].c_str(), tc ); | ||||
if ( _storedArgs.size() < j + 1 ) { // then store the argument's value | if ( _storedArgs.size() < j + 1 ) { // then store the argument's value | ||||
_storedArgs.push_back( result ); | _storedArgs.push_back( result ); | ||||
} | } | ||||
return result; | return result; | ||||
} | } | ||||
Show All 33 Lines |