[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/multimedia/amarok/src/analyzers
From:       Martin Aumüller <aumuell () reserv ! at>
Date:       2006-09-29 0:24:40
Message-ID: 1159489480.624312.19144.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 589938 by aumuell:

try to make klocwork happier


 M  +2 -3      baranalyzer.cpp  


--- trunk/extragear/multimedia/amarok/src/analyzers/baranalyzer.cpp #589937:589938
@@ -109,11 +109,10 @@
     Scope &v = m_scope;
     Analyzer::interpolate( s, v );
 
-    Scope::const_iterator it( v.begin() );
-    for ( uint i = 0, x = 0, y2; i < BAND_COUNT; ++i, ++it, x+=COLUMN_WIDTH+1 )
+    for ( uint i = 0, x = 0, y2; i < v.size(); ++i, x+=COLUMN_WIDTH+1 )
     {
         //assign pre[log10]'d value
-        y2 = uint((*it) * 256); //256 will be optimised to a bitshift //no, it's a \
float +        y2 = uint(v[i] * 256); //256 will be optimised to a bitshift //no, \
                it's a float
         y2 = m_lvlMapper[ (y2 > 255) ? 255 : y2 ]; //lvlMapper is array of ints with \
values 0 to height()  
         int change = y2 - barVector[i];


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic