aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llhudeffecttrail.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llhudeffecttrail.cpp')
-rw-r--r--linden/indra/newview/llhudeffecttrail.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/newview/llhudeffecttrail.cpp b/linden/indra/newview/llhudeffecttrail.cpp
index 79c05d7..7cfc3e1 100644
--- a/linden/indra/newview/llhudeffecttrail.cpp
+++ b/linden/indra/newview/llhudeffecttrail.cpp
@@ -188,7 +188,7 @@ void LLHUDEffectSpiral::triggerLocal()
188 { 188 {
189 if (show_beam) 189 if (show_beam)
190 { 190 {
191 LLViewerPartSourceBeam *psb = new LLViewerPartSourceBeam; 191 LLPointer<LLViewerPartSourceBeam> psb = new LLViewerPartSourceBeam;
192 psb->setColor(color); 192 psb->setColor(color);
193 psb->setSourceObject(mSourceObject); 193 psb->setSourceObject(mSourceObject);
194 psb->setTargetObject(mTargetObject); 194 psb->setTargetObject(mTargetObject);
@@ -203,7 +203,7 @@ void LLHUDEffectSpiral::triggerLocal()
203 { 203 {
204 if (show_beam) 204 if (show_beam)
205 { 205 {
206 LLViewerPartSourceBeam *psb = new LLViewerPartSourceBeam; 206 LLPointer<LLViewerPartSourceBeam> psb = new LLViewerPartSourceBeam;
207 psb->setSourceObject(mSourceObject); 207 psb->setSourceObject(mSourceObject);
208 psb->setTargetObject(NULL); 208 psb->setTargetObject(NULL);
209 psb->setColor(color); 209 psb->setColor(color);
@@ -224,7 +224,7 @@ void LLHUDEffectSpiral::triggerLocal()
224 { 224 {
225 pos = gAgent.getPosAgentFromGlobal(mPositionGlobal); 225 pos = gAgent.getPosAgentFromGlobal(mPositionGlobal);
226 } 226 }
227 LLViewerPartSourceSpiral *pss = new LLViewerPartSourceSpiral(pos); 227 LLPointer<LLViewerPartSourceSpiral> pss = new LLViewerPartSourceSpiral(pos);
228 if (!mSourceObject.isNull()) 228 if (!mSourceObject.isNull())
229 { 229 {
230 pss->setSourceObject(mSourceObject); 230 pss->setSourceObject(mSourceObject);
@@ -238,10 +238,10 @@ void LLHUDEffectSpiral::triggerLocal()
238 } 238 }
239 else 239 else
240 { 240 {
241 LLViewerPartSource *ps = mPartSourcep; 241 LLPointer<LLViewerPartSource>& ps = mPartSourcep;
242 if (mPartSourcep->getType() == LLViewerPartSource::LL_PART_SOURCE_BEAM) 242 if (mPartSourcep->getType() == LLViewerPartSource::LL_PART_SOURCE_BEAM)
243 { 243 {
244 LLViewerPartSourceBeam *psb = (LLViewerPartSourceBeam *)ps; 244 LLViewerPartSourceBeam *psb = (LLViewerPartSourceBeam *)ps.get();
245 psb->setSourceObject(mSourceObject); 245 psb->setSourceObject(mSourceObject);
246 psb->setTargetObject(mTargetObject); 246 psb->setTargetObject(mTargetObject);
247 psb->setColor(color); 247 psb->setColor(color);
@@ -252,7 +252,7 @@ void LLHUDEffectSpiral::triggerLocal()
252 } 252 }
253 else 253 else
254 { 254 {
255 LLViewerPartSourceSpiral *pss = (LLViewerPartSourceSpiral *)ps; 255 LLViewerPartSourceSpiral *pss = (LLViewerPartSourceSpiral *)ps.get();
256 pss->setSourceObject(mSourceObject); 256 pss->setSourceObject(mSourceObject);
257 } 257 }
258 } 258 }