diff options
author | George Hazan <ghazan@miranda.im> | 2019-02-15 12:40:27 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-02-15 12:40:27 +0300 |
commit | 939a842bc8af062686870e7362ca1e82b064edfa (patch) | |
tree | 92777712071b4eff53f227c705c392513b345af4 /plugins/CurrencyRates/src/DBUtils.cpp | |
parent | d061852f027e57625d7bdfd445469d9a29b1eb07 (diff) |
the less boost the better
Diffstat (limited to 'plugins/CurrencyRates/src/DBUtils.cpp')
-rw-r--r-- | plugins/CurrencyRates/src/DBUtils.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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 = '_'; +} |