From d83507c816a77515ea855bba0a0cbe9ab96f479d Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Mon, 16 Apr 2012 23:54:53 +0000 Subject: [PATCH] Use the overload of wxComboBox::Append that takes a wxArrayString rather than manually looping over the items Originally committed to SVN as r6703. --- aegisub/src/dialog_style_editor.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/aegisub/src/dialog_style_editor.cpp b/aegisub/src/dialog_style_editor.cpp index 1b6ea54b0..d89aa9aee 100644 --- a/aegisub/src/dialog_style_editor.cpp +++ b/aegisub/src/dialog_style_editor.cpp @@ -245,9 +245,7 @@ DialogStyleEditor::DialogStyleEditor(wxWindow *parent, AssStyle *style, agi::Con Alignment->SetSelection(AlignToControl(style->alignment)); // Fill font face list box FontName->Freeze(); - for (size_t i = 0; i < fontList.size(); i++) { - FontName->Append(fontList[i]); - } + FontName->Append(fontList); FontName->SetValue(style->font); FontName->Thaw();