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

« back to all changes in this revision

Viewing changes to Nux/RadioButton.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:
51
51
    }
52
52
  }
53
53
 
54
 
  void RadioButton::Draw(GraphicsEngine& graphics_engine, bool force_draw)
 
54
  void RadioButton::Draw(GraphicsEngine& graphics_engine, bool /* force_draw */)
55
55
  {
56
56
    Geometry base = GetGeometry();
57
57
    graphics_engine.PushClippingRectangle(base);
83
83
    graphics_engine.PopClippingRectangle();
84
84
  }
85
85
 
86
 
  void RadioButton::RecvClick(int x, int y, unsigned long button_flags, unsigned long key_flags)
 
86
  void RadioButton::RecvClick(int /* x */, int /* y */, unsigned long /* button_flags */, unsigned long /* key_flags */)
87
87
  {
88
88
    if (radio_button_group_.IsValid())
89
89
    {