Skip to content

Commit d3d946a

Browse files
Pass SendCoinsRecipient (208 bytes) by const reference
1 parent 659c096 commit d3d946a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/qt/paymentserver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ void PaymentServer::fetchRequest(const QUrl& url)
620620
netManager->get(netRequest);
621621
}
622622

623-
void PaymentServer::fetchPaymentACK(CWallet* wallet, SendCoinsRecipient recipient, QByteArray transaction)
623+
void PaymentServer::fetchPaymentACK(CWallet* wallet, const SendCoinsRecipient& recipient, QByteArray transaction)
624624
{
625625
const payments::PaymentDetails& details = recipient.paymentRequest.getDetails();
626626
if (!details.has_payment_url())

src/qt/paymentserver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public Q_SLOTS:
113113
void uiReady();
114114

115115
// Submit Payment message to a merchant, get back PaymentACK:
116-
void fetchPaymentACK(CWallet* wallet, SendCoinsRecipient recipient, QByteArray transaction);
116+
void fetchPaymentACK(CWallet* wallet, const SendCoinsRecipient& recipient, QByteArray transaction);
117117

118118
// Handle an incoming URI, URI with local file scheme or file
119119
void handleURIOrFile(const QString& s);

src/qt/test/paymentservertests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ void PaymentServerTests::paymentServerTests()
205205
delete server;
206206
}
207207

208-
void RecipientCatcher::getRecipient(SendCoinsRecipient r)
208+
void RecipientCatcher::getRecipient(const SendCoinsRecipient& r)
209209
{
210210
recipient = r;
211211
}

src/qt/test/paymentservertests.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class RecipientCatcher : public QObject
2626
Q_OBJECT
2727

2828
public Q_SLOTS:
29-
void getRecipient(SendCoinsRecipient r);
29+
void getRecipient(const SendCoinsRecipient& r);
3030

3131
public:
3232
SendCoinsRecipient recipient;

0 commit comments

Comments
 (0)