mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-10 07:35:40 +01:00
refactor: Remove empty caption from ThreadSafeQuestion
There is only one call-site, which provided an empty caption. Note that noui_ThreadSafeQuestionRedirect is test-only and currently entrirely unused, so the logging format string change is not a behavior change. This refactor does not change any behavior.
This commit is contained in:
@@ -47,9 +47,9 @@ bool noui_ThreadSafeMessageBox(const bilingual_str& message, const std::string&
|
||||
return false;
|
||||
}
|
||||
|
||||
bool noui_ThreadSafeQuestion(const bilingual_str& /* ignored interactive message */, const std::string& message, const std::string& caption, unsigned int style)
|
||||
bool noui_ThreadSafeQuestion(const bilingual_str& /* ignored interactive message */, const std::string& message, unsigned int style)
|
||||
{
|
||||
return noui_ThreadSafeMessageBox(Untranslated(message), caption, style);
|
||||
return noui_ThreadSafeMessageBox(Untranslated(message), /*caption=*/"", style);
|
||||
}
|
||||
|
||||
void noui_InitMessage(const std::string& message)
|
||||
@@ -70,9 +70,9 @@ bool noui_ThreadSafeMessageBoxRedirect(const bilingual_str& message, const std::
|
||||
return false;
|
||||
}
|
||||
|
||||
bool noui_ThreadSafeQuestionRedirect(const bilingual_str& /* ignored interactive message */, const std::string& message, const std::string& caption, unsigned int style)
|
||||
bool noui_ThreadSafeQuestionRedirect(const bilingual_str& /* ignored interactive message */, const std::string& message, unsigned int style)
|
||||
{
|
||||
LogInfo("%s: %s", caption, message);
|
||||
LogInfo("%s", message);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user