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 Oct 22, 2023
1 parent 0a745fa commit 6441d1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ql/instruments/cpicapfloor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ namespace QuantLib {
Calendar payCalendar,
BusinessDayConvention payConvention,
Rate strike,
const ext::shared_ptr<ZeroInflationIndex>& index,
ext::shared_ptr<ZeroInflationIndex> index,
const Period& observationLag,
CPI::InterpolationType observationInterpolation)
: type_(type), nominal_(nominal), startDate_(startDate), baseCPI_(baseCPI), maturity_(maturity),
fixCalendar_(std::move(fixCalendar)), fixConvention_(fixConvention),
payCalendar_(std::move(payCalendar)), payConvention_(payConvention), strike_(strike),
index_(index), observationLag_(observationLag),
index_(std::move(index)), observationLag_(observationLag),
observationInterpolation_(observationInterpolation) {
QL_REQUIRE(index_, "no inflation index passed");
QL_REQUIRE(fixCalendar_ != Calendar(), "no fixing calendar passed");
Expand Down
2 changes: 1 addition & 1 deletion ql/instruments/cpicapfloor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ namespace QuantLib {
Calendar payCalendar,
BusinessDayConvention payConvention,
Rate strike,
const ext::shared_ptr<ZeroInflationIndex>& inflationIndex,
ext::shared_ptr<ZeroInflationIndex> inflationIndex,
const Period& observationLag,
CPI::InterpolationType observationInterpolation = CPI::AsIndex);

Expand Down

0 comments on commit 6441d1b

Please sign in to comment.