~mc-return/compiz/compiz.merge-src-header-files-cleanup

« back to all changes in this revision

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

  • Committer: MC Return
  • Date: 2013-05-18 17:41:53 UTC
  • mto: This revision was merged to the branch mainline in revision 3720.
  • Revision ID: mc.return@gmx.net-20130518174153-8z3spe33avtei0op
Declare the pointers outside the for loop

Show diffs side-by-side

added added

removed removed

Lines of Context:
291
291
void
292
292
PrivateCubeScreen::updateOutputs ()
293
293
{
 
294
    CompOutput   *pBox0, *pBox1;
294
295
    unsigned int i, j;
295
296
    int          k = 0;
296
297
 
305
306
            screen->outputDevs ()[i].height () != screen->outputDevs ()[0].height ())
306
307
            continue;
307
308
 
308
 
        CompOutput *pBox0 = &screen->outputDevs ()[0];
309
 
        CompOutput *pBox1 = &screen->outputDevs ()[i];
 
309
        pBox0 = &screen->outputDevs ()[0];
 
310
        pBox1 = &screen->outputDevs ()[i];
310
311
 
311
312
        /* top and bottom line must match first output */
312
313
        if (pBox0->y1 () != pBox1->y1 () || pBox0->y2 () != pBox1->y2 ())