[Pkg-bitcoin-commits] [libunivalue] 05/38: Rem unused vars and prefer prefix operator for non-primitive type
Jonas Smedegaard
dr at jones.dk
Mon Feb 27 01:13:26 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository libunivalue.
commit faf260f2f86efd3c10b4605af2915d26bd956e33
Author: MarcoFalke <falke.marco at gmail.com>
Date: Thu Aug 25 09:57:00 2016 +0200
Rem unused vars and prefer prefix operator for non-primitive type
---
lib/univalue.cpp | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/lib/univalue.cpp b/lib/univalue.cpp
index 70cac30..1f8cee6 100644
--- a/lib/univalue.cpp
+++ b/lib/univalue.cpp
@@ -121,7 +121,6 @@ bool UniValue::setNumStr(const string& val_)
bool UniValue::setInt(uint64_t val_)
{
- string s;
ostringstream oss;
oss << val_;
@@ -131,7 +130,6 @@ bool UniValue::setInt(uint64_t val_)
bool UniValue::setInt(int64_t val_)
{
- string s;
ostringstream oss;
oss << val_;
@@ -141,7 +139,6 @@ bool UniValue::setInt(int64_t val_)
bool UniValue::setFloat(double val_)
{
- string s;
ostringstream oss;
oss << std::setprecision(16) << val_;
@@ -228,7 +225,7 @@ int UniValue::findKey(const std::string& key) const
bool UniValue::checkObject(const std::map<std::string,UniValue::VType>& t)
{
for (std::map<std::string,UniValue::VType>::const_iterator it = t.begin();
- it != t.end(); it++) {
+ it != t.end(); ++it) {
int idx = findKey(it->first);
if (idx < 0)
return false;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/libunivalue.git
More information about the Pkg-bitcoin-commits
mailing list