diff options
| -rw-r--r-- | indra/llaudio/llaudioengine.cpp | 2 | ||||
| -rw-r--r-- | indra/llaudio/llstreamingaudio_fmodstudio.cpp | 2 | ||||
| -rw-r--r-- | indra/llplugin/llpluginprocessparent.cpp | 2 | ||||
| -rw-r--r-- | indra/llui/llfloater.cpp | 18 | ||||
| -rw-r--r-- | indra/newview/llmediadataclient.cpp | 3 | ||||
| -rw-r--r-- | indra/newview/llvoicevivox.cpp | 4 | 
6 files changed, 13 insertions, 18 deletions
| diff --git a/indra/llaudio/llaudioengine.cpp b/indra/llaudio/llaudioengine.cpp index 2a00fe7c5a..9e897a7ce8 100644 --- a/indra/llaudio/llaudioengine.cpp +++ b/indra/llaudio/llaudioengine.cpp @@ -276,7 +276,7 @@ void LLAudioEngine::idle(F32 max_decode_time)  		{  			// The source is done playing, clean it up.  			delete sourcep; -			mAllSources.erase(iter++); +            iter = mAllSources.erase(iter);  			continue;  		} diff --git a/indra/llaudio/llstreamingaudio_fmodstudio.cpp b/indra/llaudio/llstreamingaudio_fmodstudio.cpp index 7d176e7582..85577992a6 100644 --- a/indra/llaudio/llstreamingaudio_fmodstudio.cpp +++ b/indra/llaudio/llstreamingaudio_fmodstudio.cpp @@ -138,7 +138,7 @@ void LLStreamingAudio_FMODSTUDIO::killDeadStreams()          {              LL_INFOS("FMOD") << "Closed dead stream" << LL_ENDL;              delete streamp; -            mDeadStreams.erase(iter++); +            iter = mDeadStreams.erase(iter);          }          else          { diff --git a/indra/llplugin/llpluginprocessparent.cpp b/indra/llplugin/llpluginprocessparent.cpp index eef22156bc..1fbbad06d4 100644 --- a/indra/llplugin/llpluginprocessparent.cpp +++ b/indra/llplugin/llpluginprocessparent.cpp @@ -999,7 +999,7 @@ void LLPluginProcessParent::poll(F64 timeout)      while (itClean != sInstances.end())      {          if ((*itClean).second->isDone()) -            sInstances.erase(itClean++); +            itClean = sInstances.erase(itClean);          else              ++itClean;      } diff --git a/indra/llui/llfloater.cpp b/indra/llui/llfloater.cpp index 0e42922543..f4e395a0b8 100644 --- a/indra/llui/llfloater.cpp +++ b/indra/llui/llfloater.cpp @@ -761,17 +761,13 @@ void LLFloater::closeFloater(bool app_quitting)  		for(handle_set_iter_t dependent_it = mDependents.begin();  			dependent_it != mDependents.end(); )  		{ -			  			LLFloater* floaterp = dependent_it->get(); -			if (floaterp) -			{ -				++dependent_it; -				floaterp->closeFloater(app_quitting); -			} -			else -			{ -				mDependents.erase(dependent_it++); -			} +            dependent_it = mDependents.erase(dependent_it); +            if (floaterp) +            { +                floaterp->mDependeeHandle = LLHandle<LLFloater>(); +                floaterp->closeFloater(app_quitting); +            }  		}  		cleanupHandles(); @@ -1439,7 +1435,7 @@ void LLFloater::cleanupHandles()  		LLFloater* floaterp = dependent_it->get();  		if (!floaterp)  		{ -			mDependents.erase(dependent_it++); +            dependent_it = mDependents.erase(dependent_it);  		}  		else  		{ diff --git a/indra/newview/llmediadataclient.cpp b/indra/newview/llmediadataclient.cpp index bc45eb6d3a..9d0f62a30d 100644 --- a/indra/newview/llmediadataclient.cpp +++ b/indra/newview/llmediadataclient.cpp @@ -154,8 +154,7 @@ void mark_dead_and_remove_if(T &c, const PredicateMatchRequest &matchPred)          if (matchPred(*it))          {              (*it)->markDead(); -            // *TDOO: When C++11 is in change the following line to: it = c.erase(it); -            c.erase(it++); +            it = c.erase(it);          }          else          { diff --git a/indra/newview/llvoicevivox.cpp b/indra/newview/llvoicevivox.cpp index 170508f607..3946079d68 100644 --- a/indra/newview/llvoicevivox.cpp +++ b/indra/newview/llvoicevivox.cpp @@ -4779,7 +4779,7 @@ void LLVivoxVoiceClient::sessionState::VerifySessions()          if ((*it).expired())          {              LL_WARNS("Voice") << "Expired session found! removing" << LL_ENDL; -            mSession.erase(it++); +            it = mSession.erase(it);          }          else              ++it; @@ -6834,7 +6834,7 @@ void LLVivoxVoiceClient::deleteVoiceFont(const LLUUID& id)  		if (list_iter->second == id)  		{  			LL_DEBUGS("VoiceFont") << "Removing " << id << " from the voice font list." << LL_ENDL; -			mVoiceFontList.erase(list_iter++); +            list_iter = mVoiceFontList.erase(list_iter);  			mVoiceFontListDirty = true;  		}  		else | 
