diff options
| author | Wladimir J. van der Laan <[email protected]> | 2019-10-28 13:30:20 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2019-10-28 13:31:33 +0100 |
| commit | c72906dcc11a73fa06a0adf97557fa756b551bee (patch) | |
| tree | 2cfc335a4d7a75a0bbf20b8d49f04f987ec7266f /src/noui.cpp | |
| parent | Merge #17250: Avoid unused call to GuessVerificationProgress in NotifyHeaderTip (diff) | |
| download | discoin-c72906dcc11a73fa06a0adf97557fa756b551bee.tar.xz discoin-c72906dcc11a73fa06a0adf97557fa756b551bee.zip | |
refactor: Remove redundant c_str() calls in formatting
Our formatter, tinyformat, *never* needs `c_str()` for strings.
Remove redundant `c_str()` calls for:
- `strprintf`
- `LogPrintf`
- `tfm::format`
Diffstat (limited to 'src/noui.cpp')
| -rw-r--r-- | src/noui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/noui.cpp b/src/noui.cpp index 14d6183d2..11c8f1e13 100644 --- a/src/noui.cpp +++ b/src/noui.cpp @@ -45,7 +45,7 @@ bool noui_ThreadSafeMessageBox(const std::string& message, const std::string& ca if (!fSecure) { LogPrintf("%s%s\n", strCaption, message); } - tfm::format(std::cerr, "%s%s\n", strCaption.c_str(), message.c_str()); + tfm::format(std::cerr, "%s%s\n", strCaption, message); return false; } @@ -96,4 +96,4 @@ void noui_reconnect() noui_ThreadSafeQuestionConn.disconnect(); noui_InitMessageConn.disconnect(); noui_connect(); -}
\ No newline at end of file +} |