[Libreoffice-commits] .: slideshow/source

Thomas Arnhold tarnhold at kemper.freedesktop.org
Sat Jan 29 06:46:50 PST 2011


 slideshow/source/engine/OGLTrans/unx/OGLTrans_TransitionImpl.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit d65f892a00c4c94b6a4c72467fe0004ef77162a0
Author: Thomas Arnhold <thomas at arnhold.org>
Date:   Fri Jan 28 22:26:23 2011 +0100

    cppcheck: remove unused variable lt.

diff --git a/slideshow/source/engine/OGLTrans/unx/OGLTrans_TransitionImpl.cxx b/slideshow/source/engine/OGLTrans/unx/OGLTrans_TransitionImpl.cxx
index 666e2aa..96db701 100644
--- a/slideshow/source/engine/OGLTrans/unx/OGLTrans_TransitionImpl.cxx
+++ b/slideshow/source/engine/OGLTrans/unx/OGLTrans_TransitionImpl.cxx
@@ -401,7 +401,7 @@ void OGLTransitionImpl::makeIris()
 
     Primitive irisPart, part;
     int i, nSteps = 24, nParts = 7;
-    double lt = 0, t = 1.0/nSteps, cx, cy, lcx, lcy, lx = 1, ly = 0, x, y, cxo, cyo, lcxo, lcyo, of=2.2, f=1.42;
+    double t = 1.0/nSteps, cx, cy, lcx, lcy, lx = 1, ly = 0, x, y, cxo, cyo, lcxo, lcyo, of=2.2, f=1.42;
 
     for (i=1; i<=nSteps; i++) {
         x = cos ((3*2*M_PI*t)/nParts);
@@ -422,7 +422,6 @@ void OGLTransitionImpl::makeIris()
                                basegfx::B2DVector (cxo, cyo));
         lx = x;
         ly = y;
-        lt = t;
         t += 1.0/nSteps;
     }
 


More information about the Libreoffice-commits mailing list