diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2023-01-23 17:00:14 +0100 |
---|---|---|
committer | Aurèle Oulès <aurele@oules.com> | 2023-04-26 10:41:10 +0200 |
commit | daba95700b0b77a2e898299f218c47a69ed2c7d0 (patch) | |
tree | 143bee3f3b96983e33fb7c7b2ebb3756f0fe417c /src/wallet/coincontrol.cpp | |
parent | 94776621ba6a79f3197ec71250bc48e974ad5e4a (diff) | |
download | bitcoin-daba95700b0b77a2e898299f218c47a69ed2c7d0.tar.xz |
refactor: Make ListSelected return vector
Diffstat (limited to 'src/wallet/coincontrol.cpp')
-rw-r--r-- | src/wallet/coincontrol.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/coincontrol.cpp b/src/wallet/coincontrol.cpp index d87b54e35c..2087119db9 100644 --- a/src/wallet/coincontrol.cpp +++ b/src/wallet/coincontrol.cpp @@ -58,9 +58,9 @@ void CCoinControl::UnSelectAll() m_selected_inputs.clear(); } -void CCoinControl::ListSelected(std::vector<COutPoint>& vOutpoints) const +std::vector<COutPoint> CCoinControl::ListSelected() const { - vOutpoints.assign(m_selected_inputs.begin(), m_selected_inputs.end()); + return {m_selected_inputs.begin(), m_selected_inputs.end()}; } void CCoinControl::SetInputWeight(const COutPoint& outpoint, int64_t weight) |