Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Mar 27, 2024
1 parent 972760a commit 6930698
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/RMGHardware.cc
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ void RMGHardware::RegisterDetectorCmd(const std::string& params) {
auto copy_nr_str = next();
if (!copy_nr_str.empty()) copy_nr = std::stoi(copy_nr_str);

this->RegisterDetector(type.value(), pv_name, uid, copy_nr);
this->RegisterDetector(type.value(), pv_name, uid, copy_nr);
}

void RMGHardware::DefineCommands() {
Expand Down
4 changes: 1 addition & 3 deletions src/RMGHardwareMessenger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ RMGHardwareMessenger::RMGHardwareMessenger(RMGHardware* hw) : hw(hw) {
registerCmd->AvailableForStates(G4State_PreInit);
}

RMGHardwareMessenger::~RMGHardwareMessenger() {
delete registerCmd;
}
RMGHardwareMessenger::~RMGHardwareMessenger() { delete registerCmd; }

void RMGHardwareMessenger::SetNewValue(G4UIcommand* command, G4String newValues) {
if (command == registerCmd) hw->RegisterDetectorCmd(newValues);
Expand Down

0 comments on commit 6930698

Please sign in to comment.