فهرست منبع

Update according to comments.

toneyisnow 5 سال پیش
والد
کامیت
8341ba3c27
1فایلهای تغییر یافته به همراه1 افزوده شده و 3 حذف شده
  1. 1 3
      client/widgets/Buttons.cpp

+ 1 - 3
client/widgets/Buttons.cpp

@@ -23,8 +23,6 @@
 #include "../windows/InfoWindows.h"
 #include "../../lib/CConfigHandler.h"
 
-using namespace std;
-
 void CButton::update()
 {
 	if (overlay)
@@ -439,7 +437,7 @@ void CToggleGroup::setSelected(int id)
 
 void CToggleGroup::setSelectedOnly(int id)
 {
-	for (map<int, shared_ptr<CToggleBase> >::iterator it = buttons.begin(); it != buttons.end(); it++)
+	for(auto it = buttons.begin(); it != buttons.end(); it++)
 	{
 		int buttonId = it->first;
 		buttons[buttonId]->setEnabled(buttonId == id);