Commit 57274b70 authored by Tobias Bisanz's avatar Tobias Bisanz Committed by Simon Spannagel
Browse files

Fixed linter readability-implicit-bool-conversion, though it's more code noise

(cherry picked from commit 61051589)
parent dfbb3ad3
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -98,7 +98,8 @@ namespace allpix {
                G4ThreeVector position_vector = toG4Vector(position_);
                auto* daughter_rotation = gdml_daughter->GetRotation();
                // It seems that in the case of a trivial rotation the daughter_rotation can be a nullptr
                auto* rotation_matrix = (daughter_rotation ? new G4RotationMatrix(*daughter_rotation * *rotation_)
                auto* rotation_matrix =
                    ((daughter_rotation != nullptr) ? new G4RotationMatrix(*daughter_rotation * *rotation_)
                                                    : new G4RotationMatrix(*rotation_));
                LOG(TRACE) << "Rotation matrix: " << *rotation_matrix;
                gdml_daughter->SetTranslation(gdml_daughter->GetTranslation() + position_vector);