mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Remove redundant .c_str()s
After the tinyformat switch sprintf() family functions support passing actual std::string objects. Remove unnecessary c_str calls (236 of them) in logging and formatting.
This commit is contained in:
@@ -69,18 +69,18 @@ std::string CUnsignedAlert::ToString() const
|
||||
nExpiration,
|
||||
nID,
|
||||
nCancel,
|
||||
strSetCancel.c_str(),
|
||||
strSetCancel,
|
||||
nMinVer,
|
||||
nMaxVer,
|
||||
strSetSubVer.c_str(),
|
||||
strSetSubVer,
|
||||
nPriority,
|
||||
strComment.c_str(),
|
||||
strStatusBar.c_str());
|
||||
strComment,
|
||||
strStatusBar);
|
||||
}
|
||||
|
||||
void CUnsignedAlert::print() const
|
||||
{
|
||||
LogPrintf("%s", ToString().c_str());
|
||||
LogPrintf("%s", ToString());
|
||||
}
|
||||
|
||||
void CAlert::SetNull()
|
||||
|
||||
Reference in New Issue
Block a user