summaryrefslogtreecommitdiff
path: root/plugins/CurrencyRates/src/DBUtils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-15 12:40:27 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-15 12:40:27 +0300
commit939a842bc8af062686870e7362ca1e82b064edfa (patch)
tree92777712071b4eff53f227c705c392513b345af4 /plugins/CurrencyRates/src/DBUtils.cpp
parentd061852f027e57625d7bdfd445469d9a29b1eb07 (diff)
the less boost the better
Diffstat (limited to 'plugins/CurrencyRates/src/DBUtils.cpp')
-rw-r--r--plugins/CurrencyRates/src/DBUtils.cpp7
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 = '_';
+}