aboutsummaryrefslogtreecommitdiff
path: root/src/util/bip32.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2023-03-26 20:17:46 +0100
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2023-03-26 20:17:46 +0100
commit516b75f66ec3ba7495fc028c750937bd66cc9bba (patch)
tree241cb9a4167cadecf39ecb7b939d8286c942a304 /src/util/bip32.cpp
parent483fb8d2165bacafe9c12a829afca248feeeb42f (diff)
clang-tidy: Add `performance-faster-string-find` check
https://clang.llvm.org/extra/clang-tidy/checks/performance/faster-string-find.html
Diffstat (limited to 'src/util/bip32.cpp')
-rw-r--r--src/util/bip32.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/bip32.cpp b/src/util/bip32.cpp
index c4b7120394..c0ad9257ce 100644
--- a/src/util/bip32.cpp
+++ b/src/util/bip32.cpp
@@ -25,7 +25,7 @@ bool ParseHDKeypath(const std::string& keypath_str, std::vector<uint32_t>& keypa
}
// Finds whether it is hardened
uint32_t path = 0;
- size_t pos = item.find("'");
+ size_t pos = item.find('\'');
if (pos != std::string::npos) {
// The hardened tick can only be in the last index of the string
if (pos != item.size() - 1) {