Disable warnings around all wx includes.
[dcpomatic.git] / src / wx / rating_dialog.cc
index 9886436a062c0f4e0ed3445f17d190585de19fc9..22d10813b4917db7d0beab06f7c8b6fd7dd02c42 100644 (file)
 #include "dcpomatic_spin_ctrl.h"
 #include "rating_dialog.h"
 #include "wx_util.h"
+#include "lib/warnings.h"
 #include <unicode/unistr.h>
+DCPOMATIC_DISABLE_WARNINGS
 #include <wx/listctrl.h>
 #include <wx/notebook.h>
 #include <wx/srchctrl.h>
+DCPOMATIC_ENABLE_WARNINGS
 
 
 using std::string;
@@ -164,10 +167,10 @@ StandardRatingDialogPage::found_systems_view_selection_changed ()
        }
 
        /* Update the ratings dropdown */
-       vector<wxString> items;
+       wxArrayString items;
        if (_selected_system) {
                for (auto rating: _selected_system->ratings) {
-                       items.push_back(std_to_wx(rating.label));
+                       items.Add(std_to_wx(rating.label));
                }
        }