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/QuotesProviderDukasCopy.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/QuotesProviderDukasCopy.cpp')
-rw-r--r-- | plugins/Quotes/src/QuotesProviderDukasCopy.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Quotes/src/QuotesProviderDukasCopy.cpp b/plugins/Quotes/src/QuotesProviderDukasCopy.cpp index a2aaa28e93..43e91012c6 100644 --- a/plugins/Quotes/src/QuotesProviderDukasCopy.cpp +++ b/plugins/Quotes/src/QuotesProviderDukasCopy.cpp @@ -38,7 +38,7 @@ bool CQuotesProviderDukasCopy::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);
}
@@ -69,7 +69,7 @@ tstring CQuotesProviderDukasCopy::BuildHTTPURL()const sURL << GetURL();
{
- CGuard<CLightMutex> cs(m_cs);
+ mir_cslock lck(m_cs);
for (TContracts::const_iterator i = m_aContacts.begin(); i != m_aContacts.end(); ++i)
{
MCONTACT hContact = *i;
@@ -272,7 +272,7 @@ void CQuotesProviderDukasCopy::Accept(CQuotesProviderVisitor& visitor)const MCONTACT CQuotesProviderDukasCopy::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)));
|