Skip to content

Commit

Permalink
Avoid Codacy warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed May 24, 2020
1 parent 41697fd commit f88827c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions ql/experimental/credit/randomdefaultlatentmodel.hpp
Expand Up @@ -828,11 +828,11 @@ namespace QuantLib {
Real accuracy_;
public:
// \todo: Allow a constructor building its own default latent model.
RandomDefaultLM(const ext::shared_ptr<DefaultLatentModel<copulaPolicy> >& model,
const std::vector<Real>& recoveries = std::vector<Real>(),
Size nSims = 0, // stats will crash on div by zero, FIX ME.
Real accuracy = 1.e-6,
BigNatural seed = 2863311530UL)
explicit RandomDefaultLM(const ext::shared_ptr<DefaultLatentModel<copulaPolicy> >& model,
const std::vector<Real>& recoveries = std::vector<Real>(),
Size nSims = 0, // stats will crash on div by zero, FIX ME.
Real accuracy = 1.e-6,
BigNatural seed = 2863311530UL)
: RandomLM< ::QuantLib::RandomDefaultLM, copulaPolicy, USNG>(
model->numFactors(), model->size(), model->copula(), nSims, seed),
model_(model),
Expand Down
6 changes: 3 additions & 3 deletions ql/termstructures/volatility/atmadjustedsmilesection.hpp
Expand Up @@ -32,9 +32,9 @@ namespace QuantLib {
class AtmAdjustedSmileSection : public SmileSection {

public:
AtmAdjustedSmileSection(const ext::shared_ptr<SmileSection>& source,
Real atm = Null<Real>(),
bool recenterSmile = false);
explicit AtmAdjustedSmileSection(const ext::shared_ptr<SmileSection>& source,
Real atm = Null<Real>(),
bool recenterSmile = false);

Real minStrike() const { return source_->minStrike(); }
Real maxStrike() const { return source_->maxStrike(); }
Expand Down

0 comments on commit f88827c

Please sign in to comment.