diff --git a/include/podio/detail/RelationIOHelpers.h b/include/podio/detail/RelationIOHelpers.h index cf942b96a..b0fe1b60d 100644 --- a/include/podio/detail/RelationIOHelpers.h +++ b/include/podio/detail/RelationIOHelpers.h @@ -28,7 +28,7 @@ namespace podio::detail { /// @param id The ObjectID of the element that we are currently looking for template void tryAddTo(T, std::vector& relElements, const podio::CollectionBase* coll, const podio::ObjectID id) { - if (auto typedColl = dynamic_cast(coll)) { + if (auto typedColl = dynamic_cast(coll)) { const T tmp = (*typedColl)[id.index]; relElements.emplace_back(tmp); } @@ -87,7 +87,7 @@ void addMultiRelation(std::vector& relElements, const podio::Collection if constexpr (podio::detail::isInterfaceType) { addInterfaceToMultiRelation(relElements, coll, id); } else { - const auto* typeColl = static_cast(coll); + const auto* typeColl = static_cast(coll); relElements.emplace_back((*typeColl)[id.index]); } } @@ -111,7 +111,7 @@ void addMultiRelation(std::vector& relElements, const podio::Collection /// @param id The ObjectID of the element that we are currently looking for template void tryAssignTo(T, InterfaceType*& relation, const podio::CollectionBase* coll, const podio::ObjectID id) { - if (const auto* typeColl = dynamic_cast(coll)) { + if (const auto* typeColl = dynamic_cast(coll)) { relation = new InterfaceType((*typeColl)[id.index]); } } @@ -168,7 +168,7 @@ void addSingleRelation(RelType*& relation, const podio::CollectionBase* coll, co if constexpr (podio::detail::isInterfaceType) { addInterfaceToSingleRelation(relation, coll, id); } else { - const auto* typeColl = static_cast(coll); + const auto* typeColl = static_cast(coll); relation = new RelType((*typeColl)[id.index]); } }