~brandontschaefer/compiz/lp1002246_fix

« back to all changes in this revision

Viewing changes to plugins/staticswitcher/src/staticswitcher.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:
1244
1244
        float          px, py, pos;
1245
1245
        int            count = sScreen->windows.size ();
1246
1246
 
1247
 
        CompWindow::Geometry &g = window->geometry ();
 
1247
        const CompWindow::Geometry &g = window->geometry ();
1248
1248
 
1249
1249
        if (mask & PAINT_WINDOW_OCCLUSION_DETECTION_MASK ||
1250
1250
            sScreen->ignoreSwitcher)