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

« back to all changes in this revision

Viewing changes to unity-shared/SearchBarSpinner.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:
176
176
 
177
177
  if (search_timeout_ > 0 && state_== STATE_SEARCHING)
178
178
  {
179
 
    spinner_timeout_.reset(new glib::Timeout(search_timeout_, [&] {
 
179
    spinner_timeout_.reset(new glib::Timeout(search_timeout_, [this] {
180
180
      state_ = STATE_READY;
181
181
      return false;
182
182
    }));