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

« back to all changes in this revision

Viewing changes to unity-shared/ThumbnailGenerator.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:
187
187
 
188
188
  if (!thread_create_timer_ && thumbnail_thread_is_running_ == false)
189
189
  {
190
 
    thread_create_timer_.reset(new glib::Timeout(0, [&]()
 
190
    thread_create_timer_.reset(new glib::Timeout(0, [this]()
191
191
    {
192
192
      thumbnail_thread_is_running_ = true;
193
193
      pthread_create (&thumbnail_thread_, NULL, thumbnail_thread_start, this);
214
214
void ThumbnailGeneratorImpl::StartCleanupTimer()
215
215
{
216
216
  if (!cleanup_timer_)
217
 
      cleanup_timer_.reset(new glib::Timeout(CLEANUP_DURATION, [&]() { DoCleanup(); return false; }));
 
217
      cleanup_timer_.reset(new glib::Timeout(CLEANUP_DURATION, [this]() { DoCleanup(); return false; }));
218
218
}
219
219
 
220
220