summaryrefslogtreecommitdiff
path: root/protocols/CurrencyRates/src/CurrencyRatesProviderExchangeRates.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/CurrencyRates/src/CurrencyRatesProviderExchangeRates.cpp')
-rw-r--r--protocols/CurrencyRates/src/CurrencyRatesProviderExchangeRates.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/CurrencyRates/src/CurrencyRatesProviderExchangeRates.cpp b/protocols/CurrencyRates/src/CurrencyRatesProviderExchangeRates.cpp
index 7b90322a8f..d2707c35ce 100644
--- a/protocols/CurrencyRates/src/CurrencyRatesProviderExchangeRates.cpp
+++ b/protocols/CurrencyRates/src/CurrencyRatesProviderExchangeRates.cpp
@@ -3,9 +3,8 @@
static CMStringW build_url(const CMStringW &rsURL)
{
CMStringW res = rsURL + L"?";
- ptrA szApiKey(g_plugin.getStringA(DB_KEY_ApiKey));
- if (szApiKey != nullptr)
- res.AppendFormat(L"&access_key=%S", szApiKey.get());
+ if (mir_wstrlen(g_plugin.wszApiKey))
+ res.AppendFormat(L"&apiKey=%S", (wchar_t *)g_plugin.wszApiKey);
return res;
}