Removed LLDynamicArray, LLDynamicArrayIndexed, LLDynamicArrayPtr, LLDLinked, LLDynamicQueuePtr, LLEnum, and LLIndexedQueue. Added new LLPointer variants.
This commit is contained in:
@@ -67,7 +67,7 @@ void LLHUDManager::updateEffects()
|
||||
{
|
||||
LLFastTimer ftm(FTM_HUD_EFFECTS);
|
||||
S32 i;
|
||||
for (i = 0; i < mHUDEffects.count(); i++)
|
||||
for (i = 0; i < mHUDEffects.size(); i++)
|
||||
{
|
||||
LLHUDEffect *hep = mHUDEffects[i];
|
||||
if (hep->isDead())
|
||||
@@ -85,7 +85,7 @@ void LLHUDManager::sendEffects()
|
||||
static LLCachedControl<bool> broadcast_viewer_effects(gSavedSettings, "BroadcastViewerEffects", true);
|
||||
|
||||
S32 i;
|
||||
for (i = 0; i < mHUDEffects.count(); i++)
|
||||
for (i = 0; i < mHUDEffects.size(); i++)
|
||||
{
|
||||
LLHUDEffect *hep = mHUDEffects[i];
|
||||
if (hep->mType == LLHUDObject::LL_HUD_EFFECT_LOOKAT)
|
||||
@@ -136,18 +136,18 @@ void LLHUDManager::sendEffects()
|
||||
//static
|
||||
void LLHUDManager::shutdownClass()
|
||||
{
|
||||
getInstance()->mHUDEffects.reset();
|
||||
getInstance()->mHUDEffects.clear();
|
||||
}
|
||||
|
||||
void LLHUDManager::cleanupEffects()
|
||||
{
|
||||
S32 i = 0;
|
||||
|
||||
while (i < mHUDEffects.count())
|
||||
while (i < mHUDEffects.size())
|
||||
{
|
||||
if (mHUDEffects[i]->isDead())
|
||||
{
|
||||
mHUDEffects.remove(i);
|
||||
mHUDEffects.erase(mHUDEffects.begin() + i);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -171,7 +171,7 @@ LLHUDEffect *LLHUDManager::createViewerEffect(const U8 type, BOOL send_to_sim, B
|
||||
hep->setNeedsSendToSim(send_to_sim);
|
||||
hep->setOriginatedHere(originated_here);
|
||||
|
||||
mHUDEffects.put(hep);
|
||||
mHUDEffects.push_back(hep);
|
||||
return hep;
|
||||
}
|
||||
|
||||
@@ -195,20 +195,20 @@ void LLHUDManager::processViewerEffect(LLMessageSystem *mesgsys, void **user_dat
|
||||
effectp = NULL;
|
||||
LLHUDEffect::getIDType(mesgsys, k, effect_id, effect_type);
|
||||
S32 i;
|
||||
for (i = 0; i < LLHUDManager::getInstance()->mHUDEffects.count(); i++)
|
||||
for (i = 0; i < LLHUDManager::getInstance()->mHUDEffects.size(); i++)
|
||||
{
|
||||
LLHUDEffect *cur_effectp = LLHUDManager::getInstance()->mHUDEffects[i];
|
||||
if (!cur_effectp)
|
||||
{
|
||||
LL_WARNS() << "Null effect in effect manager, skipping" << LL_ENDL;
|
||||
LLHUDManager::getInstance()->mHUDEffects.remove(i);
|
||||
LLHUDManager::getInstance()->mHUDEffects.erase(LLHUDManager::getInstance()->mHUDEffects.begin() + i);
|
||||
i--;
|
||||
continue;
|
||||
}
|
||||
if (cur_effectp->isDead())
|
||||
{
|
||||
// LL_WARNS() << "Dead effect in effect manager, removing" << LL_ENDL;
|
||||
LLHUDManager::getInstance()->mHUDEffects.remove(i);
|
||||
LLHUDManager::getInstance()->mHUDEffects.erase(LLHUDManager::getInstance()->mHUDEffects.begin() + i);
|
||||
i--;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user