aboutsummaryrefslogtreecommitdiff
path: root/src/univalue
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2015-05-31 15:36:44 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2015-06-04 19:34:18 +0200
commita9ac95c1bc67726a7d6eecb35d7650eed6c89361 (patch)
treeba9b43d9b01e925d2050d7084a11aec927a2d564 /src/univalue
parent466f0ea0e66b88285c7797ab36ba777725324e83 (diff)
use const references where appropriate
Diffstat (limited to 'src/univalue')
-rw-r--r--src/univalue/univalue.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/univalue/univalue.h b/src/univalue/univalue.h
index 79018bb787..54239741e2 100644
--- a/src/univalue/univalue.h
+++ b/src/univalue/univalue.h
@@ -61,7 +61,7 @@ public:
bool setObject();
enum VType getType() const { return typ; }
- std::string getValStr() const { return val; }
+ const std::string& getValStr() const { return val; }
bool empty() const { return (values.size() == 0); }
size_t size() const { return values.size(); }
@@ -247,4 +247,3 @@ extern const UniValue NullUniValue;
const UniValue& find_value( const UniValue& obj, const std::string& name);
#endif // BITCOIN_UNIVALUE_UNIVALUE_H
-