]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/animate/animate.cpp
Doc corrections
[wxWidgets.git] / contrib / src / animate / animate.cpp
index a334227ce1aea41bd52ce94b1ba75ffd45e9510c..a0fd35de33bd8098b5e200a1dae1c9437fc643ac 100644 (file)
@@ -109,7 +109,6 @@ bool wxAnimationPlayer::Build()
         int i;
         for (i = 0; i < n; i++)
         {
-            wxBitmap* bitmap = NULL;
             wxImage* image = GetFrame(i);
             if (image)
             {
@@ -120,7 +119,7 @@ bool wxAnimationPlayer::Build()
                 if (GetTransparentColour(transparentColour))
                     image->SetMaskColour(transparentColour.Red(), transparentColour.Green(), transparentColour.Blue());
 
-                bitmap = new wxBitmap(* image);
+                wxBitmap* bitmap = new wxBitmap(* image);
                 delete image;
                 if (bitmap)
                     m_frames.Append(bitmap);