diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-07-24 23:18:24 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-07-24 23:18:24 +0200 |
| commit | a7cd9cec31952b932ab80fb50cddec28aab74736 (patch) | |
| tree | 041018e7b337d9f9ceb7d1e651af0a0424b21f8b /src/wx/content_panel.cc | |
| parent | 73ebb92e9df01ba7afb97121b6e2cef6ca13a18e (diff) | |
Diffstat (limited to 'src/wx/content_panel.cc')
| -rw-r--r-- | src/wx/content_panel.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc index 7d854224d..9a96bcc1b 100644 --- a/src/wx/content_panel.cc +++ b/src/wx/content_panel.cc @@ -43,10 +43,13 @@ #include "lib/string_text_file_content.h" #include "lib/string_text_file.h" #include "lib/dcpomatic_log.h" +#include "lib/warnings.h" +DCPOMATIC_DISABLE_WARNINGS #include <wx/wx.h> #include <wx/notebook.h> #include <wx/listctrl.h> #include <wx/display.h> +DCPOMATIC_ENABLE_WARNINGS #include <boost/filesystem.hpp> #include <boost/foreach.hpp> #include <iostream> @@ -664,7 +667,7 @@ ContentPanel::set_selection (ContentList cl) _no_check_selection = true; ContentList content = _film->content (); - for (size_t i = 0; i < content.size(); ++i) { + for (long int i = 0; i < static_cast<long int>(content.size()); ++i) { if (find(cl.begin(), cl.end(), content[i]) != cl.end()) { _content->SetItemState (i, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED); } else { |
