Skip to content

Commit

Permalink
-use map erase that is more linux compiler friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
sgodin committed May 21, 2015
1 parent c478204 commit 876bb0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resip/dum/InMemorySyncPubDb.cxx
Expand Up @@ -84,7 +84,7 @@ InMemorySyncPubDb::initialSync(unsigned int connectionId)
{
if (shouldEraseDocument(eTagIt->second, now))
{
eTagIt = keyIt->second.erase(eTagIt);
keyIt->second.erase(eTagIt++);
}
else
{
Expand All @@ -96,7 +96,7 @@ InMemorySyncPubDb::initialSync(unsigned int connectionId)
// If there are no more eTags then remove entity
if (keyIt->second.size() == 0)
{
keyIt = mPublicationDb.erase(keyIt);
mPublicationDb.erase(keyIt++);
}
else
{
Expand Down Expand Up @@ -236,7 +236,7 @@ InMemorySyncPubDb::getMergedETags(const Data& eventType, const Data& documentKey
else
{
// ETag has expired - remove it
eTagIt = keyIt->second.erase(eTagIt);
keyIt->second.erase(eTagIt++);
// If no more Etags for key, then remove key entry and bail out
if (keyIt->second.size() == 0)
{
Expand Down

0 comments on commit 876bb0e

Please sign in to comment.