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_oid.cpp | |
parent | 9249da3c4e87bfbdbe88882e65ae01d1f90e31eb (diff) |
move instead of copy
Diffstat (limited to 'src/tests/test_oid.cpp')
-rw-r--r-- | src/tests/test_oid.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/test_oid.cpp b/src/tests/test_oid.cpp index 3431f6f31..131966c2a 100644 --- a/src/tests/test_oid.cpp +++ b/src/tests/test_oid.cpp @@ -88,11 +88,11 @@ class OID_Tests final : public Test { try { - results.push_back(fns[ i ]()); + results.emplace_back(fns[ i ]()); } - catch(std::exception& e) + catch(const std::exception& e) { - results.push_back(Test::Result::Failure("OID tests " + std::to_string(i), e.what())); + results.emplace_back(Test::Result::Failure("OID tests " + std::to_string(i), e.what())); } } @@ -106,4 +106,4 @@ BOTAN_REGISTER_TEST("oid", OID_Tests); } -}
\ No newline at end of file +} |