diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2023-03-26 20:17:46 +0100 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2023-03-26 20:17:46 +0100 |
commit | 516b75f66ec3ba7495fc028c750937bd66cc9bba (patch) | |
tree | 241cb9a4167cadecf39ecb7b939d8286c942a304 /src/util/bip32.cpp | |
parent | 483fb8d2165bacafe9c12a829afca248feeeb42f (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.cpp | 2 |
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) { |