aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/coincontrol.cpp
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2023-01-23 17:00:14 +0100
committerAurèle Oulès <aurele@oules.com>2023-04-26 10:41:10 +0200
commitdaba95700b0b77a2e898299f218c47a69ed2c7d0 (patch)
tree143bee3f3b96983e33fb7c7b2ebb3756f0fe417c /src/wallet/coincontrol.cpp
parent94776621ba6a79f3197ec71250bc48e974ad5e4a (diff)
downloadbitcoin-daba95700b0b77a2e898299f218c47a69ed2c7d0.tar.xz
refactor: Make ListSelected return vector
Diffstat (limited to 'src/wallet/coincontrol.cpp')
-rw-r--r--src/wallet/coincontrol.cpp4
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)