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 Aug 27, 2023
1 parent 1f19d49 commit 409005c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions ql/instruments/complexchooseroption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <ql/instruments/complexchooseroption.hpp>
#include <ql/instruments/payoffs.hpp>
#include <ql/exercise.hpp>
#include <utility>

namespace QuantLib {

Expand All @@ -28,14 +29,14 @@ namespace QuantLib {
Real strikeCall,
Real strikePut,
const ext::shared_ptr<Exercise>& exerciseCall,
const ext::shared_ptr<Exercise>& exercisePut)
ext::shared_ptr<Exercise> exercisePut)
: OneAssetOption(ext::make_shared<PlainVanillaPayoff>(Option::Call, strikeCall),
exerciseCall),
choosingDate_(choosingDate),
strikeCall_(strikeCall),
strikePut_(strikePut),
exerciseCall_(exerciseCall),
exercisePut_(exercisePut) {}
exercisePut_(std::move(exercisePut)) {}

void ComplexChooserOption::setupArguments(PricingEngine::arguments* args) const {
OneAssetOption::setupArguments(args);
Expand Down
2 changes: 1 addition & 1 deletion ql/instruments/complexchooseroption.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace QuantLib{
Real strikeCall,
Real strikePut,
const ext::shared_ptr<Exercise>& exerciseCall,
const ext::shared_ptr<Exercise>& exercisePut);
ext::shared_ptr<Exercise> exercisePut);
void setupArguments(PricingEngine::arguments*) const override;

private:
Expand Down

0 comments on commit 409005c

Please sign in to comment.