mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-06 03:02:37 +02:00
Merge #10964: Pass SendCoinsRecipient (208 bytes) by reference
d3d946a29 Pass SendCoinsRecipient (208 bytes) by const reference (practicalswift)
Pull request description:
Pass `SendCoinsRecipient` (208 bytes) by reference.
Avoid passing big parameters by value.
Tree-SHA512: 504791f1b1c73badbc276db13b83e39695298d7d82a9db0e48d54e7ef02f1a8d276b0adfdece1ba1130cc214e2f0fa9a3100b5359d0ca0fe96558d3c9a786e6e
This commit is contained in:
@@ -205,7 +205,7 @@ void PaymentServerTests::paymentServerTests()
|
||||
delete server;
|
||||
}
|
||||
|
||||
void RecipientCatcher::getRecipient(SendCoinsRecipient r)
|
||||
void RecipientCatcher::getRecipient(const SendCoinsRecipient& r)
|
||||
{
|
||||
recipient = r;
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ class RecipientCatcher : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public Q_SLOTS:
|
||||
void getRecipient(SendCoinsRecipient r);
|
||||
void getRecipient(const SendCoinsRecipient& r);
|
||||
|
||||
public:
|
||||
SendCoinsRecipient recipient;
|
||||
|
||||
Reference in New Issue
Block a user