From c947f1f8004f47190d1ff931b20df20f8d2d6f15 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 26 Feb 2015 15:17:07 +0100 Subject: [PATCH] VCS: Fix compile for older compiler Introduced with 8b9456e4 Change-Id: I19dbe1e8f90fb81ea51b8017306e4acd7c16b3b5 Reviewed-by: Orgad Shaneh --- src/plugins/vcsbase/vcsprojectcache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/vcsbase/vcsprojectcache.cpp b/src/plugins/vcsbase/vcsprojectcache.cpp index 5fd620b6f6e..fe1942a62cd 100644 --- a/src/plugins/vcsbase/vcsprojectcache.cpp +++ b/src/plugins/vcsbase/vcsprojectcache.cpp @@ -79,9 +79,9 @@ VcsProjectCache::VcsProjectCache() m_instance = this; connect(ProjectExplorer::SessionManager::instance(), &ProjectExplorer::SessionManager::projectAdded, - this, []() { VcsProjectCache::invalidate(); }); + this, [&]() { VcsProjectCache::invalidate(); }); connect(ProjectExplorer::SessionManager::instance(), &ProjectExplorer::SessionManager::projectRemoved, - this, []() { VcsProjectCache::invalidate(); }); + this, [&]() { VcsProjectCache::invalidate(); }); } VcsProjectCache::~VcsProjectCache()