diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-08-08 09:30:51 +0200 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-08-08 10:55:11 +0200 |
commit | fa6dc57760e0a04dbb2e365ca7ad9fd8171ebfdb (patch) | |
tree | 3caa69d46da3847125beadd629a54e339b21dec6 /contrib | |
parent | fa244f3321de7884f530bb38493a8d0a0cec86ab (diff) |
refactor: Enforce C-str fmt strings in WalletLogPrintf()
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/devtools/bitcoin-tidy/example_logprintf.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/devtools/bitcoin-tidy/example_logprintf.cpp b/contrib/devtools/bitcoin-tidy/example_logprintf.cpp index d78fc2cd6c..3106a0c161 100644 --- a/contrib/devtools/bitcoin-tidy/example_logprintf.cpp +++ b/contrib/devtools/bitcoin-tidy/example_logprintf.cpp @@ -37,9 +37,9 @@ class CWallet public: template <typename... Params> - void WalletLogPrintf(std::string fmt, Params... parameters) const + void WalletLogPrintf(const char* fmt, Params... parameters) const { - LogPrintf(("%s " + fmt).c_str(), GetDisplayName(), parameters...); + LogPrintf(("%s " + std::string{fmt}).c_str(), GetDisplayName(), parameters...); }; }; |