From c0fac242125283ac78984a21dd577e23823d23d6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 11 Aug 2024 02:23:37 +0000 Subject: [PATCH] Automated fixes by clang-tidy --- ql/termstructures/yield/oisratehelper.cpp | 2 +- ql/termstructures/yield/oisratehelper.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ql/termstructures/yield/oisratehelper.cpp b/ql/termstructures/yield/oisratehelper.cpp index 964baa960c4..64d3908e7b8 100644 --- a/ql/termstructures/yield/oisratehelper.cpp +++ b/ql/termstructures/yield/oisratehelper.cpp @@ -188,7 +188,7 @@ namespace QuantLib { Natural lookbackDays, Natural lockoutDays, bool applyObservationShift, - ext::shared_ptr pricer) + const ext::shared_ptr& pricer) : RateHelper(fixedRate), discountHandle_(std::move(discount)), telescopicValueDates_(telescopicValueDates), averagingMethod_(averagingMethod) { diff --git a/ql/termstructures/yield/oisratehelper.hpp b/ql/termstructures/yield/oisratehelper.hpp index 4c18d6f5c41..3efd315082f 100644 --- a/ql/termstructures/yield/oisratehelper.hpp +++ b/ql/termstructures/yield/oisratehelper.hpp @@ -126,7 +126,7 @@ namespace QuantLib { Natural lookbackDays = Null(), Natural lockoutDays = 0, bool applyObservationShift = false, - ext::shared_ptr pricer = {}); + const ext::shared_ptr& pricer = {}); /*! \deprecated Use the overload without forward start. Deprecated in version 1.35.