aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpcdump.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-06-18 07:58:28 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2018-08-27 18:19:33 +0200
commitf34c8c466a0e514edac2e8683127b4176ad5d321 (patch)
tree587ba001d5d6eaae71d234009098710dd30354c3 /src/wallet/rpcdump.cpp
parentf180e81d5780805a28bcc71c2bb6b16076336c3c (diff)
downloadbitcoin-f34c8c466a0e514edac2e8683127b4176ad5d321.tar.xz
Make objects in range declarations immutable by default. Avoid unnecessary copying of objects in range declarations.
Diffstat (limited to 'src/wallet/rpcdump.cpp')
-rw-r--r--src/wallet/rpcdump.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp
index 60f14e5886..af36d321d5 100644
--- a/src/wallet/rpcdump.cpp
+++ b/src/wallet/rpcdump.cpp
@@ -41,7 +41,7 @@ int64_t static DecodeDumpTime(const std::string &str) {
std::string static EncodeDumpString(const std::string &str) {
std::stringstream ret;
- for (unsigned char c : str) {
+ for (const unsigned char c : str) {
if (c <= 32 || c >= 128 || c == '%') {
ret << '%' << HexStr(&c, &c + 1);
} else {