From 958c0cebb9754d3f72e5e7a3132006825a4a6a8b Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Fri, 27 Feb 2015 08:21:14 +0100 Subject: [PATCH] Vcs: Fix compile for MSVC2010 as well Change-Id: I76bed2b8256073a14398dd0055173481e2c7f48d 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 fe1942a62cd..5ab2c875f72 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, [this]() { VcsProjectCache::invalidate(); }); connect(ProjectExplorer::SessionManager::instance(), &ProjectExplorer::SessionManager::projectRemoved, - this, [&]() { VcsProjectCache::invalidate(); }); + this, [this]() { VcsProjectCache::invalidate(); }); } VcsProjectCache::~VcsProjectCache()