Import Geant4 10.6.0 source tree
This commit is contained in:
@@ -158,7 +158,7 @@ void G4HnMessenger::SetNewValue(G4UIcommand* command, G4String newValues)
|
||||
std::vector<G4String> parameters;
|
||||
G4Analysis::Tokenize(newValues, parameters);
|
||||
// check consistency
|
||||
if ( G4int(parameters.size()) == command->GetParameterEntries() ) {
|
||||
if ( parameters.size() == command->GetParameterEntries() ) {
|
||||
auto counter = 0;
|
||||
auto id = G4UIcommand::ConvertToInt(parameters[counter++]);
|
||||
auto activation = G4UIcommand::ConvertToBool(parameters[counter++]);
|
||||
@@ -178,7 +178,7 @@ void G4HnMessenger::SetNewValue(G4UIcommand* command, G4String newValues)
|
||||
std::vector<G4String> parameters;
|
||||
G4Analysis::Tokenize(newValues, parameters);
|
||||
// check consistency
|
||||
if ( G4int(parameters.size()) == command->GetParameterEntries() ) {
|
||||
if ( parameters.size() == command->GetParameterEntries() ) {
|
||||
auto counter = 0;
|
||||
auto id = G4UIcommand::ConvertToInt(parameters[counter++]);
|
||||
auto activation = G4UIcommand::ConvertToBool(parameters[counter++]);
|
||||
|
||||
Reference in New Issue
Block a user