From 83eeba28b7272a870f777f2f21bfc1def36e873f Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 24 Nov 2013 14:46:26 +0000 Subject: (svn r26086) -Codechange: use AutoDeleteSmallVector instead std::list for dropdowns --- src/ai/ai_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai') diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp index 676774f15..8bcc41455 100644 --- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -476,7 +476,7 @@ struct AISettingsWindow : public Window { DropDownList *list = new DropDownList(); for (int i = config_item.min_value; i <= config_item.max_value; i++) { - list->push_back(new DropDownListCharStringItem(config_item.labels->Find(i)->second, i, false)); + *list->Append() = new DropDownListCharStringItem(config_item.labels->Find(i)->second, i, false); } ShowDropDownListAt(this, list, old_val, -1, wi_rect, COLOUR_ORANGE, true); -- cgit v1.2.3-70-g09d2