diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-01-16 16:15:27 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-01-23 16:05:01 +0100 |
| commit | 7d9d134bf95cb6a2ce9623c7e6a3535432a61af2 (patch) | |
| tree | eeca53e065947846648d9373f240d593c0c0ecfc /src/alert.cpp | |
| parent | Typesafe strprintf/error/LogPrint functions (diff) | |
| download | discoin-7d9d134bf95cb6a2ce9623c7e6a3535432a61af2.tar.xz discoin-7d9d134bf95cb6a2ce9623c7e6a3535432a61af2.zip | |
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.
Diffstat (limited to 'src/alert.cpp')
| -rw-r--r-- | src/alert.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/alert.cpp b/src/alert.cpp index 7c9e54ef8..f9cd58d38 100644 --- a/src/alert.cpp +++ b/src/alert.cpp @@ -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() |