diff options
author | Philip Kaufmann <phil.kaufmann@t-online.de> | 2015-05-31 15:36:44 +0200 |
---|---|---|
committer | Philip Kaufmann <phil.kaufmann@t-online.de> | 2015-06-04 19:34:18 +0200 |
commit | a9ac95c1bc67726a7d6eecb35d7650eed6c89361 (patch) | |
tree | ba9b43d9b01e925d2050d7084a11aec927a2d564 /src/univalue/univalue.h | |
parent | 466f0ea0e66b88285c7797ab36ba777725324e83 (diff) |
use const references where appropriate
Diffstat (limited to 'src/univalue/univalue.h')
-rw-r--r-- | src/univalue/univalue.h | 3 |
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 - |