~unity-team/nux/nux.armel-fixes

« back to all changes in this revision

Viewing changes to Nux/LayeredLayout.cpp

  • Committer: Tarmac
  • Author(s): Michi Henning
  • Date: 2012-10-02 01:05:45 UTC
  • mfrom: (667.2.5 1056633)
  • Revision ID: tarmac-20121002010545-jphizk30nj3oe9ui
Added -Wextra to compiler flags and removed a large number of warnings about unused parameters. Code compiles clean now without warnings, except for one remaining warning (see bug #1052765).. Fixes: https://bugs.launchpad.net/bugs/1056633. Approved by Michi Henning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
236
236
  }
237
237
 
238
238
  void LayeredLayout::AddLayout(Layout                *layout,
239
 
                                unsigned int           stretch_factor,
240
 
                                MinorDimensionPosition positioning,
241
 
                                MinorDimensionSize     extend,
242
 
                                float                  percentage)
 
239
                                unsigned int           /* stretch_factor */,
 
240
                                MinorDimensionPosition /* positioning */,
 
241
                                MinorDimensionSize     /* extend */,
 
242
                                float                  /* percentage */)
243
243
  {
244
244
    AddLayer(layout);
245
245
  }
246
246
 
247
247
  void LayeredLayout::AddView(Area                  *view,
248
 
                              unsigned int           stretch_factor,
249
 
                              MinorDimensionPosition positioning,
250
 
                              MinorDimensionSize     extend,
251
 
                              float                  percentage)
 
248
                              unsigned int           /* stretch_factor */,
 
249
                              MinorDimensionPosition /* positioning */,
 
250
                              MinorDimensionSize     /* extend */,
 
251
                              float                  /* percentage */)
252
252
  {
253
253
    AddLayer(view);
254
254
  }
266
266
    Layout::Clear();
267
267
  }
268
268
 
269
 
  void LayeredLayout::ChildQueueDraw(Area *area)
 
269
  void LayeredLayout::ChildQueueDraw(Area * /* area */)
270
270
  {
271
271
    m_child_draw_queued = true;
272
272
  }
273
273
 
274
 
  void LayeredLayout::ChildVisibilityChanged(Area *area, bool visible)
 
274
  void LayeredLayout::ChildVisibilityChanged(Area * /* area */, bool /* visible */)
275
275
  {
276
276
    QueueDraw();
277
277
  }