diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2018-10-26 16:05:51 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2019-02-22 13:38:36 -0500 |
| commit | 3446da1875c29d5cba19896d8efcb5d899ade36d (patch) | |
| tree | 146744df23d271c729dd6e6a9e75b46319a832b7 | |
| parent | 85624fe9462e801b225b7f3c709c0c4dbc32264d (diff) | |
| download | pyisda-3446da1875c29d5cba19896d8efcb5d899ade36d.tar.gz | |
use move
| -rw-r--r-- | c_layer/curve.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/c_layer/curve.hpp b/c_layer/curve.hpp index 5479e72..22a6cc9 100644 --- a/c_layer/curve.hpp +++ b/c_layer/curve.hpp @@ -37,7 +37,7 @@ namespace pyisda { YieldCurve(TCurve* const curve, const std::vector<TDate>& dates); YieldCurve(const YieldCurve &curve2) : Curve(curve2), - dates(curve2.dates) {}; + dates(std::move(curve2.dates)) {}; size_t size(); unsigned char* serialize(unsigned char* buf); std::vector<TDate> dates; @@ -46,11 +46,11 @@ namespace pyisda { class SpreadCurve : public Curve { public: SpreadCurve(TCurve* const curve, const std::vector<double>& recovery_rates, - std::string ticker); + const std::string& ticker); SpreadCurve(const SpreadCurve &curve2) : Curve(curve2), - recovery_rates(curve2.recovery_rates), - ticker(curve2.ticker) {}; + recovery_rates(std::move(curve2.recovery_rates)), + ticker(std::move(curve2.ticker)) {}; std::vector<double> recovery_rates; std::string ticker; |
