~brandontschaefer/compiz/lp1002246_fix

« back to all changes in this revision

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

  • Committer: Tarmac
  • Author(s): Daniel van Vugt
  • Date: 2012-12-07 14:51:17 UTC
  • mfrom: (3513.2.5 constify-CompWindow)
  • Revision ID: tarmac-20121207145117-x4o7y97ol1t5fm0a
Const'ify the methods of CompWindow where possible. I think this covers all
candidates except for:
   1. sizeHints() - we need to fix LP: #925867 first.
   2. other methods that return references to ints, because no corresponding
      "set" method exists yet.
As those are logic changes, I would prefer to deal with them separately.

Approved by PS Jenkins bot, Sam Spilsbury.

Show diffs side-by-side

added added

removed removed

Lines of Context:
413
413
void
414
414
CloneScreen::setStrutsForCloneWindow (Clone *clone)
415
415
{
 
416
#if 0
 
417
    // Pointless code - needs fixing
416
418
    CompOutput *output = &screen->outputDevs ()[clone->dst];
417
419
    XRectangle *rect = NULL;
418
420
    CompStruts *struts;
470
472
    }
471
473
 
472
474
    wStruts = struts;
 
475
    /*
 
476
     * ^ FIXME: This code does nothing. Looks like it was meant to be:
 
477
     *              *w->struts() = struts;
 
478
     *          However that is not legal. CompWindow needs a setStruts().
 
479
     */
 
480
#endif
473
481
}
474
482
 
475
483
void