From 939a842bc8af062686870e7362ca1e82b064edfa Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 15 Feb 2019 12:40:27 +0300 Subject: the less boost the better --- plugins/CurrencyRates/src/SettingsDlg.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugins/CurrencyRates/src/SettingsDlg.cpp') diff --git a/plugins/CurrencyRates/src/SettingsDlg.cpp b/plugins/CurrencyRates/src/SettingsDlg.cpp index 7ac0a52361..ef81b22a41 100644 --- a/plugins/CurrencyRates/src/SettingsDlg.cpp +++ b/plugins/CurrencyRates/src/SettingsDlg.cpp @@ -964,9 +964,7 @@ tstring GenerateLogFileName(const tstring &rsLogFilePattern, const tstring &rsCu tstring::size_type n = sPath.find(g_pszVariableCurrencyRateName); if (tstring::npos != n) { tstring s = rsCurrencyRateSymbol; - for (auto &c : s) - if (wcschr(L"\\/:*?\"<>|", c)) - c = '_'; + FixInvalidChars(s); sPath.replace(n, _countof(g_pszVariableCurrencyRateName)-1, s.c_str()); } } -- cgit v1.2.3