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] committed Sep 29, 2024
1 parent 1af4f82 commit 9a06204
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion ql/cashflows/yoyinflationcoupon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ namespace QuantLib {
Calendar paymentCalendar,
ext::shared_ptr<YoYInflationIndex> index,
const Period& observationLag)
: yoyInflationLeg(schedule, paymentCalendar, index, observationLag, CPI::AsIndex) {}
: yoyInflationLeg(std::move(schedule), std::move(paymentCalendar), std::move(index), observationLag, CPI::AsIndex) {}


yoyInflationLeg& yoyInflationLeg::withNotionals(Real notional) {
Expand Down
2 changes: 1 addition & 1 deletion ql/experimental/inflation/yoycapfloortermpricesurface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ namespace QuantLib {
const std::vector<Period>& cfMaturities,
const Matrix& cPrice,
const Matrix& fPrice)
: YoYCapFloorTermPriceSurface(fixingDays, yyLag, yii, CPI::AsIndex, nominal, dc, cal, bdc,
: YoYCapFloorTermPriceSurface(fixingDays, yyLag, yii, CPI::AsIndex, std::move(nominal), dc, cal, bdc,
cStrikes, fStrikes, cfMaturities, cPrice, fPrice) {}

Date YoYCapFloorTermPriceSurface::yoyOptionDateFromTenor(const Period& p) const
Expand Down
4 changes: 2 additions & 2 deletions ql/experimental/inflation/yoyoptionlethelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ namespace QuantLib {
Rate strike,
Size n,
ext::shared_ptr<YoYInflationCapFloorEngine> pricer)
: YoYOptionletHelper(price, notional, capFloorType, lag, yoyDayCounter, paymentCalendar,
fixingDays, index, CPI::AsIndex, strike, n, pricer) {}
: YoYOptionletHelper(price, notional, capFloorType, lag, std::move(yoyDayCounter), std::move(paymentCalendar),
fixingDays, std::move(index), CPI::AsIndex, strike, n, std::move(pricer)) {}


Real YoYOptionletHelper::impliedQuote() const {
Expand Down
2 changes: 1 addition & 1 deletion ql/instruments/makeyoyinflationcapfloor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace QuantLib {
const Size& length,
Calendar cal,
const Period& observationLag)
: MakeYoYInflationCapFloor(capFloorType, index, length, cal, observationLag, CPI::AsIndex) {}
: MakeYoYInflationCapFloor(capFloorType, std::move(index), length, std::move(cal), observationLag, CPI::AsIndex) {}

MakeYoYInflationCapFloor::operator YoYInflationCapFloor() const {
ext::shared_ptr<YoYInflationCapFloor> capfloor = *this;
Expand Down
6 changes: 3 additions & 3 deletions ql/instruments/yearonyearinflationswap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ namespace QuantLib {
DayCounter yoyDayCount,
Calendar paymentCalendar,
BusinessDayConvention paymentConvention)
: YearOnYearInflationSwap(type, nominal, fixedSchedule, fixedRate, fixedDayCount,
yoySchedule, yoyIndex, observationLag, CPI::AsIndex,
spread, yoyDayCount, paymentCalendar, paymentConvention) {}
: YearOnYearInflationSwap(type, nominal, std::move(fixedSchedule), fixedRate, std::move(fixedDayCount),
std::move(yoySchedule), std::move(yoyIndex), observationLag, CPI::AsIndex,
spread, std::move(yoyDayCount), std::move(paymentCalendar), paymentConvention) {}

void YearOnYearInflationSwap::setupArguments(PricingEngine::arguments* args) const {

Expand Down
4 changes: 2 additions & 2 deletions ql/termstructures/inflation/inflationhelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ namespace QuantLib {
DayCounter dayCounter,
ext::shared_ptr<YoYInflationIndex> yii,
Handle<YieldTermStructure> nominalTermStructure)
: YearOnYearInflationSwapHelper(quote, swapObsLag, maturity, calendar, paymentConvention,
dayCounter, yii, CPI::AsIndex, nominalTermStructure) {}
: YearOnYearInflationSwapHelper(quote, swapObsLag, maturity, std::move(calendar), paymentConvention,
std::move(dayCounter), std::move(yii), CPI::AsIndex, std::move(nominalTermStructure)) {}


Real YearOnYearInflationSwapHelper::impliedQuote() const {
Expand Down

0 comments on commit 9a06204

Please sign in to comment.