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 12, 2021
1 parent 4196cf5 commit 848b6a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test-suite/basismodels.cpp
Expand Up @@ -131,6 +131,7 @@ namespace {
std::vector<std::vector<Handle<Quote> > > capletVolQuotes;
for (auto& capletVol : capletVols) {
std::vector<Handle<Quote> > row;
row.reserve(capletVol.size());
for (double j : capletVol)
row.push_back(RelinkableHandle<Quote>(ext::shared_ptr<Quote>(new SimpleQuote(j))));
capletVolQuotes.push_back(row);
Expand Down Expand Up @@ -165,6 +166,7 @@ namespace {
std::vector<std::vector<Handle<Quote> > > swaptionVolQuotes;
for (auto& swaptionVol : swaptionVols) {
std::vector<Handle<Quote> > row;
row.reserve(swaptionVol.size());
for (double j : swaptionVol)
row.push_back(RelinkableHandle<Quote>(ext::shared_ptr<Quote>(new SimpleQuote(j))));
swaptionVolQuotes.push_back(row);
Expand Down
2 changes: 1 addition & 1 deletion test-suite/crosscurrencyratehelpers.cpp
Expand Up @@ -86,7 +86,7 @@ namespace crosscurrencyratehelpers_test {
bool isBasisOnFxBaseCurrencyLeg) const {
std::vector<ext::shared_ptr<RateHelper> > instruments;
instruments.reserve(xccyData.size());
for (auto& i : xccyData) {
for (const auto& i : xccyData) {
instruments.push_back(constantNotionalXccyRateHelper(
i, collateralHandle, isFxBaseCurrencyCollateralCurrency,
isBasisOnFxBaseCurrencyLeg));
Expand Down

0 comments on commit 848b6a0

Please sign in to comment.