aboutsummaryrefslogtreecommitdiff
path: root/src/univalue/univalue.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@bitpay.com>2014-08-20 09:59:31 -0400
committerJonas Schnelli <jonas.schnelli@include7.ch>2015-06-04 09:16:05 +0200
commitefc78837728bebcf2030d1d495018e563eb10c71 (patch)
tree767ac9e67aa0616498af77dfa64d5be3bf713a9a /src/univalue/univalue.h
parentdbd855023158e1c5ca2c5f0e8be552ecfb455834 (diff)
UniValue: prefer .size() to .count(), to harmonize w/ existing tree
Diffstat (limited to 'src/univalue/univalue.h')
-rw-r--r--src/univalue/univalue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/univalue/univalue.h b/src/univalue/univalue.h
index 88d73b8c64..d31c596a61 100644
--- a/src/univalue/univalue.h
+++ b/src/univalue/univalue.h
@@ -58,7 +58,7 @@ public:
std::string getValStr() const { return val; }
bool empty() const { return (values.size() == 0); }
- size_t count() const { return values.size(); }
+ size_t size() const { return values.size(); }
bool getBool() const { return isTrue(); }
bool checkObject(const std::map<std::string,UniValue::VType>& memberTypes);