~attente/unity/hud-controller-gvariant-type-error

« back to all changes in this revision

Viewing changes to dash/previews/PreviewInfoHintWidget.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:
148
148
 
149
149
  previews::Style& style = previews::Style::Instance();
150
150
 
151
 
  auto on_mouse_down = [&](int x, int y, unsigned long button_flags, unsigned long key_flags) { this->preview_container_.OnMouseDown(x, y, button_flags, key_flags); };
 
151
  auto on_mouse_down = [this](int x, int y, unsigned long button_flags, unsigned long key_flags) { this->preview_container_.OnMouseDown(x, y, button_flags, key_flags); };
152
152
 
153
153
  nux::VLayout* layout = new nux::VLayout();
154
154
  layout->SetSpaceBetweenChildren(6);