diff options
author | rumcajs <[email protected]> | 2018-10-14 11:41:00 +0200 |
---|---|---|
committer | rumcajs <[email protected]> | 2018-10-14 11:41:00 +0200 |
commit | 2f53c434f88e1c39e86c978f3523ebc1051996a9 (patch) | |
tree | a2628a317cd5dd105c3ba8a9c7820bef2f0b5450 /src/tests/test_ecies.cpp | |
parent | 9249da3c4e87bfbdbe88882e65ae01d1f90e31eb (diff) |
move instead of copy
Diffstat (limited to 'src/tests/test_ecies.cpp')
-rw-r--r-- | src/tests/test_ecies.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/test_ecies.cpp b/src/tests/test_ecies.cpp index 3648450af..5c95e9a0c 100644 --- a/src/tests/test_ecies.cpp +++ b/src/tests/test_ecies.cpp @@ -425,11 +425,11 @@ class ECIES_Unit_Tests final : public Test { try { - results.push_back(fns[ i ]()); + results.emplace_back(fns[ i ]()); } catch(std::exception& e) { - results.push_back(Test::Result::Failure("ECIES unit tests " + std::to_string(i), e.what())); + results.emplace_back(Test::Result::Failure("ECIES unit tests " + std::to_string(i), e.what())); } } |