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

« back to all changes in this revision

Viewing changes to plugins/move/src/move.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:
222
222
    REGION       r;
223
223
    CompRect     workArea;
224
224
    BoxRec       extents;
225
 
    unsigned int i;
226
225
 
227
226
    region = XCreateRegion ();
228
227
    if (!region)
243
242
 
244
243
    XUnionRegion (&r, region, region);
245
244
 
246
 
    for (i = 0; i < s->outputDevs ().size (); i++)
 
245
    for (unsigned int i = 0; i < s->outputDevs ().size (); i++)
247
246
    {
248
247
        XUnionRegion (s->outputDevs ()[i].region (), region, region);
249
248
 
524
523
            {
525
524
                if (grab)
526
525
                {
527
 
                    unsigned int i;
528
 
 
529
 
                    for (i = 0; i < NUM_KEYS; i++)
 
526
                    for (unsigned int i = 0; i < NUM_KEYS; i++)
530
527
                    {
531
528
                        if (event->xkey.keycode == key[i])
532
529
                        {