Skip to content

Commit 44d33cf

Browse files
committed
chore: Some clang-tidy fixes
1 parent 8f8fe4d commit 44d33cf

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Core/include/Acts/Propagator/RiddersPropagator.ipp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "Acts/Propagator/RiddersPropagator.hpp"
1212

1313
#include "Acts/Definitions/TrackParametrization.hpp"
14+
#include "Acts/EventData/BoundTrackParameters.hpp"
1415

1516
#include <numbers>
1617

Core/src/EventData/MultiComponentTrackParameters.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace Acts {
1818

1919
BoundTrackParameters MultiComponentBoundTrackParameters::merge(
2020
const ComponentMergeMethod method) const {
21-
if (size() == 0) {
21+
if (empty()) {
2222
throw std::logic_error(
2323
"Cannot merge MultiComponentBoundTrackParameters with zero components");
2424
}

Examples/Detectors/MuonSpectrometerMockupDetector/src/GeoMuonMockupExperiment.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ ActsPlugins::GeoModelTree GeoMuonMockupExperiment::constructMS() {
169169
VolumeMap_t publishedVol{};
170170
for (const auto& [fpV, pubKey] : m_publisher->getPublishedFPV()) {
171171
try {
172-
const auto key = [pubKey]() {
172+
const auto key = [&pubKey]() {
173173
if constexpr (std::is_same_v<std::remove_cvref_t<decltype(pubKey)>,
174-
std::string>) {
174+
std::any>) {
175175
return std::any_cast<std::string>(pubKey);
176176
} else {
177177
return std::get<std::string>(pubKey);

0 commit comments

Comments
 (0)