]> sigrok.org Git - pulseview.git/commitdiff
Removed uneeded statements in LogicDataSnapshot test
authorJoel Holdsworth <redacted>
Sat, 13 Oct 2012 21:29:07 +0000 (22:29 +0100)
committerJoel Holdsworth <redacted>
Sat, 20 Oct 2012 17:29:25 +0000 (18:29 +0100)
test/logicdatasnapshot.cpp

index 4f2c86517d6a114882a96f8ebb330e15ec8afd7d..3dd72285e52d85dba5f8a134150beb61dd170498 100644 (file)
@@ -355,7 +355,7 @@ BOOST_AUTO_TEST_CASE(LongPulses)
        for(int i = 0; i < Cycles; i++) {
                for(j = 0; j < PulseWidth; j++)
                        *p++ = ~0;
-               for(j; j < Period; j++)
+               for(; j < Period; j++)
                        *p++ = 0;
        }
 
@@ -376,7 +376,7 @@ BOOST_AUTO_TEST_CASE(LongPulses)
                        BOOST_CHECK_EQUAL(s.get_subsample(0, i++), ~0);
                }
 
-               for(j; i < s._mip_map[0].length &&
+               for(; i < s._mip_map[0].length &&
                        j < Period/LogicDataSnapshot::MipMapScaleFactor; j++) {
                        BOOST_TEST_MESSAGE(
                                "Testing mip_map[0].data[" << i << "]");