warning: lambda capture 'this' is not used #442

Closed
opened 1 year ago by wowario · 1 comments
wowario commented 1 year ago
Owner
wownero/src/wallet/wallet2.cpp:1557:4: warning: lambda capture 'this' is not used [-Wunused-lambda-capture]
  [this, index](const transfer_details &td) {
``` wownero/src/wallet/wallet2.cpp:1557:4: warning: lambda capture 'this' is not used [-Wunused-lambda-capture] [this, index](const transfer_details &td) { ```
wowario added the V0.11 label 1 year ago
dsc added this to the v0.11 milestone 1 year ago
wowario commented 1 year ago
Poster
Owner

related to Misc. wallet API and wallet2 60ff2f668e

src/wallet/wallet2.cpp

bool wallet2::get_subaddress_used(const cryptonote::subaddress_index& index)
{
  return std::find_if(m_transfers.begin(), m_transfers.end(),
  [this, index](const transfer_details &td) {
  return td.m_subaddr_index == index;
  }) != m_transfers.end();
}
related to **Misc. wallet API and wallet2** https://git.wownero.com/wowario/wownero/commit/60ff2f668e1b63b79702b996f622b7adc87a05cc src/wallet/wallet2.cpp ``` bool wallet2::get_subaddress_used(const cryptonote::subaddress_index& index) { return std::find_if(m_transfers.begin(), m_transfers.end(), [this, index](const transfer_details &td) { return td.m_subaddr_index == index; }) != m_transfers.end(); } ```
wowario closed this issue 1 year ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: wownero/wownero#442
Loading…
There is no content yet.