Skip to content

Commit

Permalink
Automated fixes by clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and lballabio committed Sep 18, 2023
1 parent 4e0942a commit 4d4d314
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions ql/instruments/overnightindexedswap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,16 @@ namespace QuantLib {
Schedule fixedSchedule,
Rate fixedRate,
DayCounter fixedDC,
std::vector<Real> overnightNominals,
const std::vector<Real>& overnightNominals,
const Schedule& overnightSchedule,
ext::shared_ptr<OvernightIndex> overnightIndex,
const ext::shared_ptr<OvernightIndex>& overnightIndex,
Spread spread,
Natural paymentLag,
BusinessDayConvention paymentAdjustment,
const Calendar& paymentCalendar,
bool telescopicValueDates,
RateAveraging::Type averagingMethod)
: FixedVsFloatingSwap(type, fixedNominals, fixedSchedule, fixedRate, fixedDC,
: FixedVsFloatingSwap(type, std::move(fixedNominals), std::move(fixedSchedule), fixedRate, std::move(fixedDC),
overnightNominals, overnightSchedule, overnightIndex,
spread, DayCounter(), ext::nullopt),
overnightIndex_(overnightIndex), averagingMethod_(averagingMethod) {
Expand Down
4 changes: 2 additions & 2 deletions ql/instruments/overnightindexedswap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ namespace QuantLib {
Schedule fixedSchedule,
Rate fixedRate,
DayCounter fixedDC,
std::vector<Real> overnightNominals,
const std::vector<Real>& overnightNominals,
const Schedule& overnightSchedule,
ext::shared_ptr<OvernightIndex> overnightIndex,
const ext::shared_ptr<OvernightIndex>& overnightIndex,
Spread spread = 0.0,
Natural paymentLag = 0,
BusinessDayConvention paymentAdjustment = Following,
Expand Down

0 comments on commit 4d4d314

Please sign in to comment.