aboutsummaryrefslogtreecommitdiff
path: root/src/warnings.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-06-10 12:14:32 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-06-10 15:01:20 +0300
commitd49612f98add29066817b7c808b76c2d728948e5 (patch)
tree63b71a0f69b6c829b177ffd4de5d8352b1b462e3 /src/warnings.cpp
parentd1ae7c0355662481a7d181a0a458284936d53eb1 (diff)
Make SetMiscWarning() accept bilingual_str argument
Diffstat (limited to 'src/warnings.cpp')
-rw-r--r--src/warnings.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/warnings.cpp b/src/warnings.cpp
index 1dd7f63575..501bf7e637 100644
--- a/src/warnings.cpp
+++ b/src/warnings.cpp
@@ -13,14 +13,14 @@
#include <vector>
static Mutex g_warnings_mutex;
-static std::string strMiscWarning GUARDED_BY(g_warnings_mutex);
+static bilingual_str g_misc_warnings GUARDED_BY(g_warnings_mutex);
static bool fLargeWorkForkFound GUARDED_BY(g_warnings_mutex) = false;
static bool fLargeWorkInvalidChainFound GUARDED_BY(g_warnings_mutex) = false;
-void SetMiscWarning(const std::string& strWarning)
+void SetMiscWarning(const bilingual_str& warning)
{
LOCK(g_warnings_mutex);
- strMiscWarning = strWarning;
+ g_misc_warnings = warning;
}
void SetfLargeWorkForkFound(bool flag)
@@ -55,8 +55,8 @@ bilingual_str GetWarnings(bool verbose)
}
// Misc warnings like out of disk space and clock is wrong
- if (!strMiscWarning.empty()) {
- warnings_concise = Untranslated(strMiscWarning);
+ if (!g_misc_warnings.empty()) {
+ warnings_concise = g_misc_warnings;
warnings_verbose.emplace_back(warnings_concise);
}