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 Oct 20, 2024
1 parent 98e6e3b commit 5ee8f89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ql/experimental/commodities/commodityindex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace QuantLib {

CommodityIndex::CommodityIndex(const std::string& indexName,
CommodityIndex::CommodityIndex(std::string indexName,
CommodityType commodityType,
Currency currency,
UnitOfMeasure unitOfMeasure,
Expand All @@ -32,7 +32,7 @@ namespace QuantLib {
ext::shared_ptr<CommodityCurve> forwardCurve,
ext::shared_ptr<ExchangeContracts> exchangeContracts,
int nearbyOffset)
: name_(indexName), commodityType_(std::move(commodityType)),
: name_(std::move(indexName)), commodityType_(std::move(commodityType)),
unitOfMeasure_(std::move(unitOfMeasure)), currency_(std::move(currency)),
calendar_(std::move(calendar)), lotQuantity_(lotQuantity),
forwardCurve_(std::move(forwardCurve)), exchangeContracts_(std::move(exchangeContracts)),
Expand Down
2 changes: 1 addition & 1 deletion ql/experimental/commodities/commodityindex.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace QuantLib {
//! base class for commodity indexes
class CommodityIndex : public Index {
public:
CommodityIndex(const std::string& name,
CommodityIndex(std::string name,
CommodityType commodityType,
Currency currency,
UnitOfMeasure unitOfMeasure,
Expand Down

0 comments on commit 5ee8f89

Please sign in to comment.