diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-30 06:00:43 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-30 06:00:43 +0000 |
commit | e08a7cc8649d735a166879a3c1cf0b1642c651d1 (patch) | |
tree | 1916876b0586ea5bf1c00b22e59e274708e3b61d /plugins/Quotes/src/QuotesProviderFinance.cpp | |
parent | 481296bc540cdbdd0efef87ddaa173c96619edc3 (diff) |
minus critical section
git-svn-id: http://svn.miranda-ng.org/main/trunk@13268 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Quotes/src/QuotesProviderFinance.cpp')
-rw-r--r-- | plugins/Quotes/src/QuotesProviderFinance.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Quotes/src/QuotesProviderFinance.cpp b/plugins/Quotes/src/QuotesProviderFinance.cpp index 78e7444987..4dac495ff1 100644 --- a/plugins/Quotes/src/QuotesProviderFinance.cpp +++ b/plugins/Quotes/src/QuotesProviderFinance.cpp @@ -37,7 +37,7 @@ bool CQuotesProviderFinance::WatchForQuote(const CQuote& rQuote, bool bWatch) {
MCONTACT hContact = *i;
{// for CCritSection
- CGuard<CLightMutex> cs(m_cs);
+ mir_cslock lck(m_cs);
m_aContacts.erase(i);
}
@@ -64,7 +64,7 @@ bool CQuotesProviderFinance::WatchForQuote(const CQuote& rQuote, bool bWatch) MCONTACT CQuotesProviderFinance::GetContactByQuoteID(const tstring& rsQuoteID)const
{
- CGuard<CLightMutex> cs(m_cs);
+ mir_cslock lck(m_cs);
TContracts::const_iterator i = std::find_if(m_aContacts.begin(), m_aContacts.end(),
boost::bind(std::equal_to<tstring>(), rsQuoteID, boost::bind(get_quote_id, _1)));
|