← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2209: fix some lambda captures

 

------------------------------------------------------------
revno: 2209
committer: poy <poy@xxxxxxxxxx>
branch nick: repo
timestamp: Wed 2010-08-11 23:26:57 +0200
message:
  fix some lambda captures
modified:
  win32/TabsPage.cpp


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'win32/TabsPage.cpp'
--- win32/TabsPage.cpp	2010-08-11 16:56:23 +0000
+++ win32/TabsPage.cpp	2010-08-11 21:26:57 +0000
@@ -69,14 +69,14 @@
 		GridPtr cur2 = group->addChild(Grid::Seed(2, 1));
 		dcppDraw = cur2->addChild(RadioButton::Seed(T_("Let DC++ draw tabs")));
 		dcppDraw->onClicked(std::bind(&TabsPage::createPreview, this));
-		dcppDraw->onClicked([&themeGroup, &browserTheme]() {
+		dcppDraw->onClicked([this]() {
 			themeGroup->setEnabled(true);
 			if(!dwt::util::win32::ensureVersion(dwt::util::win32::VISTA))
 				browserTheme->setEnabled(false);
 		});
 		RadioButtonPtr button = cur2->addChild(RadioButton::Seed(T_("Use standard Windows tabs")));
 		button->onClicked(std::bind(&TabsPage::createPreview, this));
-		button->onClicked([&themeGroup]() { themeGroup->setEnabled(false); });
+		button->onClicked([this]() { themeGroup->setEnabled(false); });
 		if(SETTING(TAB_STYLE) & SettingsManager::TAB_STYLE_OD)
 			dcppDraw->setChecked();
 		else