~unity-team/nux/nux.redirected-views

« back to all changes in this revision

Viewing changes to Nux/VSplitter.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:
76
76
    m_SplitConfig.clear();
77
77
  }
78
78
 
79
 
  void VSplitter::Draw(GraphicsEngine &graphics_engine, bool force_draw)
 
79
  void VSplitter::Draw(GraphicsEngine &graphics_engine, bool /* force_draw */)
80
80
  {
81
81
    Geometry base = GetGeometry();
82
82
    graphics_engine.PushClippingRectangle(base);
175
175
    graphics_engine.PopClippingRectangle();
176
176
  }
177
177
 
178
 
  void VSplitter::PostDraw(GraphicsEngine &graphics_engine, bool force_draw)
 
178
  void VSplitter::PostDraw(GraphicsEngine & /* graphics_engine */, bool /* force_draw */)
179
179
  {
180
180
 
181
181
  }
415
415
    m_initial_config = true;
416
416
  }
417
417
 
418
 
  void VSplitter::OnSplitterMouseDown(int x, int y, unsigned long button_flags, unsigned long key_flags, int header_pos)
 
418
  void VSplitter::OnSplitterMouseDown(int x, int y, unsigned long /* button_flags */, unsigned long /* key_flags */, int header_pos)
419
419
  {
420
420
    m_point = Point(x, y);
421
421
 
426
426
    GetWindowThread()->RequestRedraw();
427
427
  }
428
428
 
429
 
  void VSplitter::OnSplitterMouseUp(int x, int y, unsigned long button_flags, unsigned long key_flags, int header_pos)
 
429
  void VSplitter::OnSplitterMouseUp(int /* x */, int /* y */, unsigned long /* button_flags */, unsigned long /* key_flags */, int header_pos)
430
430
  {
431
431
    if (mvt_dx)
432
432
    {
456
456
    GetWindowThread()->RequestRedraw();
457
457
  }
458
458
 
459
 
  void VSplitter::OnSplitterMouseDrag(int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags, int header_pos)
 
459
  void VSplitter::OnSplitterMouseDrag(int x, int /* y */, int /* dx */, int /* dy */, unsigned long /* button_flags */, unsigned long /* key_flags */, int header_pos)
460
460
  {
461
461
    Geometry geo = m_SplitterObject[header_pos]->GetGeometry();
462
462
    int num_element = (int) m_SplitterObject.size();