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 Jul 21, 2020
1 parent 5994f17 commit d3985b9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
9 changes: 4 additions & 5 deletions test-suite/capfloor.cpp
Expand Up @@ -105,10 +105,10 @@ namespace capfloor_test {
}

ext::shared_ptr<CapFloor> makeCapFloor(CapFloor::Type type,
const Leg& leg,
Rate strike,
Volatility volatility,
bool isLogNormal = true) {
const Leg& leg,
Rate strike,
Volatility volatility,
bool isLogNormal = true) const {
ext::shared_ptr<CapFloor> result;
switch (type) {
case CapFloor::Cap:
Expand All @@ -129,7 +129,6 @@ namespace capfloor_test {
}
return result;
}

};

bool checkAbsError(Real x1, Real x2, Real tolerance){
Expand Down
8 changes: 4 additions & 4 deletions test-suite/capflooredcoupon.cpp
Expand Up @@ -158,10 +158,10 @@ namespace capfloored_coupon_test {
}

ext::shared_ptr<CapFloor> makeCapFloor(CapFloor::Type type,
const Leg& leg,
Rate capStrike,
Rate floorStrike,
Volatility volatility) {
const Leg& leg,
Rate capStrike,
Rate floorStrike,
Volatility volatility) const {
ext::shared_ptr<CapFloor> result;
switch (type) {
case CapFloor::Cap:
Expand Down
3 changes: 1 addition & 2 deletions test-suite/inflationcapfloor.cpp
Expand Up @@ -252,7 +252,7 @@ namespace inflation_capfloor_test {
const Leg& leg,
Rate strike,
Volatility volatility,
Size which) {
Size which) const {
ext::shared_ptr<YoYInflationCapFloor> result;
switch (type) {
case YoYInflationCapFloor::Cap:
Expand All @@ -269,7 +269,6 @@ namespace inflation_capfloor_test {
result->setPricingEngine(makeEngine(volatility, which));
return result;
}

};

}
Expand Down
9 changes: 4 additions & 5 deletions test-suite/inflationcapflooredcoupon.cpp
Expand Up @@ -351,10 +351,10 @@ namespace inflation_capfloored_coupon_test {


ext::shared_ptr<YoYInflationCapFloor> makeYoYCapFloor(YoYInflationCapFloor::Type type,
const Leg& leg,
Rate strike,
Volatility volatility,
Size which) {
const Leg& leg,
Rate strike,
Volatility volatility,
Size which) const {
ext::shared_ptr<YoYInflationCapFloor> result;
switch (type) {
case YoYInflationCapFloor::Cap:
Expand All @@ -371,7 +371,6 @@ namespace inflation_capfloored_coupon_test {
result->setPricingEngine(makeEngine(volatility, which));
return result;
}

};

}
Expand Down

0 comments on commit d3985b9

Please sign in to comment.