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/DBUtils.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugins/CurrencyRates/src/DBUtils.cpp') diff --git a/plugins/CurrencyRates/src/DBUtils.cpp b/plugins/CurrencyRates/src/DBUtils.cpp index fa3df0c528..20189c0f3f 100644 --- a/plugins/CurrencyRates/src/DBUtils.cpp +++ b/plugins/CurrencyRates/src/DBUtils.cpp @@ -34,3 +34,10 @@ bool CurrencyRates_DBReadDouble(MCONTACT hContact, const char *szModule, const c db_free(&dbv); return bResult; } + +void FixInvalidChars(tstring &s) +{ + for (auto &c : s) + if (wcschr(L"\\/:*?\"<>|", c)) + c = '_'; +} -- cgit v1.2.3