diff options
Diffstat (limited to 'protocols/CurrencyRates/src')
-rw-r--r-- | protocols/CurrencyRates/src/CurrencyRatesProviderCurrencyConverter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/CurrencyRates/src/CurrencyRatesProviderCurrencyConverter.cpp b/protocols/CurrencyRates/src/CurrencyRatesProviderCurrencyConverter.cpp index 9b1bfdc31a..db6d2104aa 100644 --- a/protocols/CurrencyRates/src/CurrencyRatesProviderCurrencyConverter.cpp +++ b/protocols/CurrencyRates/src/CurrencyRatesProviderCurrencyConverter.cpp @@ -19,12 +19,12 @@ CMStringW build_url(MCONTACT hContact, const CMStringW &rsURL) bool parse_response(const CMStringW &rsJSON, double &dRate) { - setlocale(LC_NUMERIC, "en_US"); JSONNode root = JSONNode::parse(_T2A(rsJSON)); if (!root) return false; - return 1 == swscanf(root.at(json_index_t(0)).as_mstring(), L"%lf", &dRate); + dRate = root.at(json_index_t(0)).as_float(); + return true; } using TWatchedRates = std::vector<CCurrencyRatesProviderCurrencyConverter::TRateInfo>; |