X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Frating_dialog.cc;h=22d10813b4917db7d0beab06f7c8b6fd7dd02c42;hb=b9a1ad3df5f9d85fb7439efd93fede72b9b078af;hp=9886436a062c0f4e0ed3445f17d190585de19fc9;hpb=47d83b296248119d04b9226fd51a67e2fd3faac5;p=dcpomatic.git diff --git a/src/wx/rating_dialog.cc b/src/wx/rating_dialog.cc index 9886436a0..22d10813b 100644 --- a/src/wx/rating_dialog.cc +++ b/src/wx/rating_dialog.cc @@ -22,10 +22,13 @@ #include "dcpomatic_spin_ctrl.h" #include "rating_dialog.h" #include "wx_util.h" +#include "lib/warnings.h" #include +DCPOMATIC_DISABLE_WARNINGS #include #include #include +DCPOMATIC_ENABLE_WARNINGS using std::string; @@ -164,10 +167,10 @@ StandardRatingDialogPage::found_systems_view_selection_changed () } /* Update the ratings dropdown */ - vector 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)); } }