aboutsummaryrefslogtreecommitdiff
path: root/src/univalue
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-06-05 07:00:57 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-06-05 07:11:44 +0200
commit3fce72eaa3ea75aa911e32c4d96313848338cede (patch)
tree8604bec497a9137315589e468ba8f79e1f7a0fd7 /src/univalue
parentd38cd47fe3d65d3d6d867d6fb61a4ce24f0747b3 (diff)
parenta9ac95c1bc67726a7d6eecb35d7650eed6c89361 (diff)
Merge pull request #6206
a9ac95c use const references where appropriate (Philip Kaufmann)
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
-