summaryrefslogtreecommitdiff
path: root/plugins/CurrencyRates/src/CurrencyConverter.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-21 15:58:11 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-21 15:58:11 +0300
commit7f4db3773e723059ddd50b63b21717cc941ca424 (patch)
treee7c904de02cfd308070b3e5ee779183804e5f505 /plugins/CurrencyRates/src/CurrencyConverter.cpp
parent98e5dab950ab976bbf244dc21e7bfe2353722d45 (diff)
the less boost and other C++ perversions - the better
Diffstat (limited to 'plugins/CurrencyRates/src/CurrencyConverter.cpp')
-rw-r--r--plugins/CurrencyRates/src/CurrencyConverter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/CurrencyRates/src/CurrencyConverter.cpp b/plugins/CurrencyRates/src/CurrencyConverter.cpp
index 2dcb69ea8b..5a7f4d1487 100644
--- a/plugins/CurrencyRates/src/CurrencyConverter.cpp
+++ b/plugins/CurrencyRates/src/CurrencyConverter.cpp
@@ -9,9 +9,8 @@
static CCurrencyRatesProviderCurrencyConverter *get_currency_converter_provider()
{
- CModuleInfo::TCurrencyRatesProvidersPtr pProviders = CModuleInfo::GetCurrencyRateProvidersPtr();
- for (auto &it : pProviders->GetProviders())
- if (auto p = dynamic_cast<CCurrencyRatesProviderCurrencyConverter*>(it.get()))
+ for (auto &it : g_apProviders)
+ if (auto p = dynamic_cast<CCurrencyRatesProviderCurrencyConverter*>(it))
return p;
assert(!"We should never get here!");