~ps-jenkins/compiz/latestsnapshot-10.9.9daily13.06.1913.04-0ubuntu1

« back to all changes in this revision

Viewing changes to plugins/shift/src/shift.cpp

  • Committer: MC Return
  • Date: 2012-12-01 17:07:09 UTC
  • mto: This revision was merged to the branch mainline in revision 3503.
  • Revision ID: mc.return@gmx.net-20121201170709-9us3w77m7b0cr4vu
Simplified declaration of int i by moving it into the for loop, where i is eventually used

Show diffs side-by-side

added added

removed removed

Lines of Context:
538
538
    int ww, wh;
539
539
    float xScale, yScale;
540
540
    float distance;
541
 
    int i;
542
541
 
543
542
    CompRect oe;
544
543
 
588
587
        space *= 2;
589
588
        //space += (space / sin (PI / 4)) - space;
590
589
 
591
 
        for (i = 0; i < 2; i++)
 
590
        for (int i = 0; i < 2; i++)
592
591
        {
593
592
            if (mInvert ^ (i == 0))
594
593
            {
676
675
    int ww, wh;
677
676
    float xScale, yScale;
678
677
    float distance;
679
 
    int i;
680
678
    float angle;
681
679
    int slotNum;
682
680
 
722
720
 
723
721
        angle = optionGetFlipRotation () * PI / 180.0;
724
722
 
725
 
        for (i = 0; i < 2; i++)
 
723
        for (int i = 0; i < 2; i++)
726
724
        {
727
725
            if (mInvert ^ (i == 0))
728
726
                distance = mMvTarget - index;
1458
1456
 
1459
1457
                if (!mCancelled && mMvTarget != 0)
1460
1458
                {
1461
 
                    int i;
1462
 
                    for (i = 0; i < mNSlots; i++)
 
1459
                    for (int i = 0; i < mNSlots; i++)
1463
1460
                    {
1464
1461
                        w = mDrawSlots[i].w;
1465
1462