فهرست منبع

DeC++11ify dock code.

Branimir Karadžić 9 سال پیش
والد
کامیت
77d1611d94
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      3rdparty/ocornut-imgui/widgets/dock.inl

+ 4 - 2
3rdparty/ocornut-imgui/widgets/dock.inl

@@ -211,7 +211,8 @@ namespace ImGui
 			bool  first;
 		};
 
-		ImVector<Dock*> m_docks;
+		typedef ImVector<Dock*> DockVector;
+		DockVector m_docks;
 		ImVec2 m_drag_offset;
 		Dock* m_current;
 		int m_last_frame;
@@ -340,8 +341,9 @@ namespace ImGui
 		void checkNonexistent()
 		{
 			int frame_limit = ImMax(0, ImGui::GetFrameCount() - 2);
-			for (Dock* dock : m_docks)
+			for (DockVector::iterator it = m_docks.begin(), itEnd = m_docks.end(); it != itEnd; ++it)
 			{
+				Dock* dock = *it;
 				if (dock->isContainer()) continue;
 				if (dock->status == Status_Float) continue;
 				if (dock->last_frame < frame_limit)