Skip to content

Commit d9e62d3

Browse files
authored
Merge pull request bitcoin#24 from MarcoFalke/Mf1608-cleanup
Rem unused vars and prefer prefix operator for non-primitive type
2 parents 09a2693 + faf260f commit d9e62d3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/univalue.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ bool UniValue::setNumStr(const string& val_)
121121

122122
bool UniValue::setInt(uint64_t val_)
123123
{
124-
string s;
125124
ostringstream oss;
126125

127126
oss << val_;
@@ -131,7 +130,6 @@ bool UniValue::setInt(uint64_t val_)
131130

132131
bool UniValue::setInt(int64_t val_)
133132
{
134-
string s;
135133
ostringstream oss;
136134

137135
oss << val_;
@@ -141,7 +139,6 @@ bool UniValue::setInt(int64_t val_)
141139

142140
bool UniValue::setFloat(double val_)
143141
{
144-
string s;
145142
ostringstream oss;
146143

147144
oss << std::setprecision(16) << val_;
@@ -228,7 +225,7 @@ int UniValue::findKey(const std::string& key) const
228225
bool UniValue::checkObject(const std::map<std::string,UniValue::VType>& t)
229226
{
230227
for (std::map<std::string,UniValue::VType>::const_iterator it = t.begin();
231-
it != t.end(); it++) {
228+
it != t.end(); ++it) {
232229
int idx = findKey(it->first);
233230
if (idx < 0)
234231
return false;

0 commit comments

Comments
 (0)