~3v1n0/unity/scale-window-cast-protection

« back to all changes in this revision

Viewing changes to hud/HudView.cpp

  • Committer: Marco Trevisan (Treviño)
  • Date: 2013-11-14 03:00:29 UTC
  • mto: This revision was merged to the branch mainline in revision 3596.
  • Revision ID: mail@3v1n0.net-20131114030029-jw6albd1rccg1uzm
Unity: always prefer passing [this] to lambdas than [&]

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
  search_bar_->text_entry()->SetLoseKeyFocusOnKeyNavDirectionUp(false);
84
84
  search_bar_->text_entry()->SetLoseKeyFocusOnKeyNavDirectionDown(false);
85
85
 
86
 
  search_bar_->text_entry()->key_nav_focus_change.connect([&](nux::Area *area, bool receiving, nux::KeyNavDirection direction)
 
86
  search_bar_->text_entry()->key_nav_focus_change.connect([this](nux::Area *area, bool receiving, nux::KeyNavDirection direction)
87
87
  {
88
88
    // We get here when the Hud closes.
89
89
    // The TextEntry should always have the keyboard focus as long as the hud is open.
239
239
 
240
240
    button_views_->AddView(button.GetPointer(), 0, nux::MINOR_POSITION_START);
241
241
 
242
 
    button->click.connect([&](nux::View* view) {
 
242
    button->click.connect([this](nux::View* view) {
243
243
      query_activated.emit(dynamic_cast<HudButton*>(view)->GetQuery());
244
244
    });
245
245
 
390
390
      content_layout_->AddLayout(button_views_.GetPointer(), 1, nux::MINOR_POSITION_START);
391
391
    }
392
392
 
393
 
    content_layout_->geometry_changed.connect([&](nux::Area*, nux::Geometry& geo)
 
393
    content_layout_->geometry_changed.connect([this](nux::Area*, nux::Geometry& geo)
394
394
    {
395
395
      if (!timeline_animating_)
396
396
      {