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 Feb 3, 2025
1 parent 4b6fe59 commit bf3907f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ql/indexes/inflationindex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ namespace QuantLib {
YoYInflationIndex::YoYInflationIndex(const ext::shared_ptr<ZeroInflationIndex>& underlyingIndex,
bool interpolated,
Handle<YoYInflationTermStructure> yoyInflation)
: YoYInflationIndex(underlyingIndex, yoyInflation) {
: YoYInflationIndex(underlyingIndex, std::move(yoyInflation)) {
interpolated_ = interpolated;
}

Expand All @@ -278,7 +278,7 @@ namespace QuantLib {
const Period& availabilityLag,
const Currency& currency,
Handle<YoYInflationTermStructure> yoyInflation)
: YoYInflationIndex(familyName, region, revised, frequency, availabilityLag, currency, yoyInflation) {
: YoYInflationIndex(familyName, region, revised, frequency, availabilityLag, currency, std::move(yoyInflation)) {
interpolated_ = interpolated;
}

Expand Down

0 comments on commit bf3907f

Please sign in to comment.