~brandontschaefer/compiz/lp1002246_fix

« back to all changes in this revision

Viewing changes to plugins/resize/src/window-impl.h

  • 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:
93
93
            return mImpl->sizeHints ();
94
94
        }
95
95
 
96
 
        virtual CompWindow::Geometry & serverGeometry () const
 
96
        virtual const CompWindow::Geometry & serverGeometry () const
97
97
        {
98
98
            return mImpl->serverGeometry ();
99
99
        }
100
100
 
101
 
        virtual CompWindowExtents & border () const
 
101
        virtual const CompWindowExtents & border () const
102
102
        {
103
103
            return mImpl->border ();
104
104
        }
105
105
 
106
 
        virtual CompWindowExtents & output () const
 
106
        virtual const CompWindowExtents & output () const
107
107
        {
108
108
            return mImpl->output ();
109
109
        }