Skip to content

Commit becc45b

Browse files
committed
scripted-diff: Rename setSelected->m_selected_inputs
-BEGIN VERIFY SCRIPT- sed -i 's/setSelected/m_selected_inputs/g' src/wallet/coincontrol.h src/wallet/coincontrol.cpp -END VERIFY SCRIPT-
1 parent 2cc43de commit becc45b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/wallet/coincontrol.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ class CCoinControl
6565

6666
bool HasSelected() const
6767
{
68-
return (setSelected.size() > 0);
68+
return (m_selected_inputs.size() > 0);
6969
}
7070

7171
bool IsSelected(const COutPoint& output) const
7272
{
73-
return (setSelected.count(output) > 0);
73+
return (m_selected_inputs.count(output) > 0);
7474
}
7575

7676
bool IsExternalSelected(const COutPoint& output) const
@@ -90,28 +90,28 @@ class CCoinControl
9090

9191
void Select(const COutPoint& output)
9292
{
93-
setSelected.insert(output);
93+
m_selected_inputs.insert(output);
9494
}
9595

9696
void SelectExternal(const COutPoint& outpoint, const CTxOut& txout)
9797
{
98-
setSelected.insert(outpoint);
98+
m_selected_inputs.insert(outpoint);
9999
m_external_txouts.emplace(outpoint, txout);
100100
}
101101

102102
void UnSelect(const COutPoint& output)
103103
{
104-
setSelected.erase(output);
104+
m_selected_inputs.erase(output);
105105
}
106106

107107
void UnSelectAll()
108108
{
109-
setSelected.clear();
109+
m_selected_inputs.clear();
110110
}
111111

112112
void ListSelected(std::vector<COutPoint>& vOutpoints) const
113113
{
114-
vOutpoints.assign(setSelected.begin(), setSelected.end());
114+
vOutpoints.assign(m_selected_inputs.begin(), m_selected_inputs.end());
115115
}
116116

117117
void SetInputWeight(const COutPoint& outpoint, int64_t weight)
@@ -132,7 +132,7 @@ class CCoinControl
132132
}
133133

134134
private:
135-
std::set<COutPoint> setSelected;
135+
std::set<COutPoint> m_selected_inputs;
136136
std::map<COutPoint, CTxOut> m_external_txouts;
137137
//! Map of COutPoints to the maximum weight for that input
138138
std::map<COutPoint, int64_t> m_input_weights;

0 commit comments

Comments
 (0)