photosgallery/slideshow/engine/effectsrc/shwdefaulteffectmanager.cpp
branchRCL_3
changeset 14 2dac0fdba72b
parent 13 bcb43dc84c44
child 15 191387a8b767
--- a/photosgallery/slideshow/engine/effectsrc/shwdefaulteffectmanager.cpp	Wed Mar 31 21:31:03 2010 +0300
+++ b/photosgallery/slideshow/engine/effectsrc/shwdefaulteffectmanager.cpp	Wed Apr 14 15:57:24 2010 +0300
@@ -196,7 +196,13 @@
 	/// are cloned as needed
 	MShwEffect* clone = effect->CloneLC();
 	iAvailableEffects.AppendL( clone );
-	CleanupStack::Pop( clone );
+	
+    // This will cause a code scanner warning, but it is not possible to do 
+    // CleanupStack::Pop(clone) because the pointer pushed 
+    // onto the cleanup stack was either of class CShwZoomAndPanEffect
+    // or a CShwCrossFadeEffect and the object 'clone' is of
+    // class MShwEffect
+    CleanupStack::Pop(); //clone
 
     iEffects.Append( effect );
     iEffects.Append( clone );