[asterisk-scf-commits] asterisk-scf/release/routing.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Fri Jan 7 16:52:36 UTC 2011
branch "master" has been updated
via 0ec69e310c04cc5adc0fea1f363d35126c653c82 (commit)
from 229737c095035362f35c8f24c00462149e1c23eb (commit)
Summary of changes:
src/EndpointRegistry.cpp | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
- Log -----------------------------------------------------------------
commit 0ec69e310c04cc5adc0fea1f363d35126c653c82
Author: Joshua Colp <jcolp at digium.com>
Date: Fri Jan 7 12:52:26 2011 -0400
Remove initialization of iterators. This was giving MSVC++ 10 some heartburn. Now all is well!
diff --git a/src/EndpointRegistry.cpp b/src/EndpointRegistry.cpp
index 6993aeb..8abaa5d 100644
--- a/src/EndpointRegistry.cpp
+++ b/src/EndpointRegistry.cpp
@@ -137,8 +137,8 @@ void EndpointRegistry::addEndpointLocator(const std::string& locatorId, const Re
{
lg(Debug) << "EndpointRegistry::addEndpointLocator() adding locator for " << locatorId << ". Proxy details: " << locator->ice_toString() << std::endl;
- EndpointLocatorMapIterator existing(0);
- EndpointLocatorMapIterator end(0);
+ EndpointLocatorMapIterator existing;
+ EndpointLocatorMapIterator end;
{ // critical scope
boost::shared_lock<boost::shared_mutex> lock(mImpl->mLock);
@@ -177,8 +177,8 @@ void EndpointRegistry::removeEndpointLocator(const std::string& locatorId, const
{
lg(Debug) << "EndpointRegistry::removeEndpointLocator() removing locator " << locatorId;
- EndpointLocatorMapIterator existing(0);
- EndpointLocatorMapIterator end(0);
+ EndpointLocatorMapIterator existing;
+ EndpointLocatorMapIterator end;
{ // critical scope
boost::shared_lock<boost::shared_mutex> lock(mImpl->mLock);
@@ -218,8 +218,8 @@ void EndpointRegistry::setEndpointLocatorDestinationIds(const std::string& locat
{
try
{
- EndpointLocatorMapIterator existing(0);
- EndpointLocatorMapIterator end(0);
+ EndpointLocatorMapIterator existing;
+ EndpointLocatorMapIterator end;
{ // critical scope
boost::shared_lock<boost::shared_mutex> lock(mImpl->mLock);
-----------------------------------------------------------------------
--
asterisk-scf/release/routing.git
More information about the asterisk-scf-commits
mailing list