mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Cleanup code using move semantics
This commit is contained in:
@@ -146,7 +146,7 @@ struct Regression_test : public beast::unit_test::suite
|
||||
auto secp256r1Sig = std::make_unique<STTx>(*(jt.stx));
|
||||
auto pubKeyBlob = strUnHex(secp256r1PubKey);
|
||||
assert(pubKeyBlob); // Hex for public key must be valid
|
||||
secp256r1Sig->setFieldVL(sfSigningPubKey, std::move(*pubKeyBlob));
|
||||
secp256r1Sig->setFieldVL(sfSigningPubKey, *pubKeyBlob);
|
||||
jt.stx.reset(secp256r1Sig.release());
|
||||
|
||||
env(jt, ter(temINVALID));
|
||||
|
||||
Reference in New Issue
Block a user