From 4ddd746bf9714a209b2f82918a70c4fe81d895c9 Mon Sep 17 00:00:00 2001 From: fanquake Date: Mon, 25 Jul 2022 11:46:57 +0100 Subject: refactor: remove unnecessary string initializations --- src/blockfilter.cpp | 2 +- src/external_signer.cpp | 2 +- src/util/system.cpp | 2 +- src/wallet/rpc/backup.cpp | 2 +- src/wallet/rpc/wallet.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/blockfilter.cpp b/src/blockfilter.cpp index 1ad6872143..0ff79bb3ca 100644 --- a/src/blockfilter.cpp +++ b/src/blockfilter.cpp @@ -148,7 +148,7 @@ bool GCSFilter::MatchAny(const ElementSet& elements) const const std::string& BlockFilterTypeName(BlockFilterType filter_type) { - static std::string unknown_retval = ""; + static std::string unknown_retval; auto it = g_filter_types.find(filter_type); return it != g_filter_types.end() ? it->second : unknown_retval; } diff --git a/src/external_signer.cpp b/src/external_signer.cpp index d125fe479b..6bab0a856c 100644 --- a/src/external_signer.cpp +++ b/src/external_signer.cpp @@ -49,7 +49,7 @@ bool ExternalSigner::Enumerate(const std::string& command, std::vector