mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-19 20:20:00 +01:00
refactor: starts/ends_with changes for clang-tidy 20
This commit is contained in:
@@ -85,7 +85,7 @@ KeyInfo InterpretKey(std::string key)
|
||||
result.section = key.substr(0, option_index);
|
||||
key.erase(0, option_index + 1);
|
||||
}
|
||||
if (key.substr(0, 2) == "no") {
|
||||
if (key.starts_with("no")) {
|
||||
key.erase(0, 2);
|
||||
result.negated = true;
|
||||
}
|
||||
@@ -189,7 +189,7 @@ bool ArgsManager::ParseParameters(int argc, const char* const argv[], std::strin
|
||||
// internet" warning, and clicks the Open button, macOS passes
|
||||
// a unique process serial number (PSN) as -psn_... command-line
|
||||
// argument, which we filter out.
|
||||
if (key.substr(0, 5) == "-psn_") continue;
|
||||
if (key.starts_with("-psn_")) continue;
|
||||
#endif
|
||||
|
||||
if (key == "-") break; //bitcoin-tx using stdin
|
||||
|
||||
Reference in New Issue
Block a user