From 516b75f66ec3ba7495fc028c750937bd66cc9bba Mon Sep 17 00:00:00 2001
From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>
Date: Sun, 26 Mar 2023 20:17:46 +0100
Subject: clang-tidy: Add `performance-faster-string-find` check

https://clang.llvm.org/extra/clang-tidy/checks/performance/faster-string-find.html
---
 src/util/bip32.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/util')

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) {
-- 
cgit v1.2.3