summaryrefslogtreecommitdiff
path: root/src/wx/content_panel.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-07-24 23:18:24 +0200
committerCarl Hetherington <cth@carlh.net>2020-07-24 23:18:24 +0200
commita7cd9cec31952b932ab80fb50cddec28aab74736 (patch)
tree041018e7b337d9f9ceb7d1e651af0a0424b21f8b /src/wx/content_panel.cc
parent73ebb92e9df01ba7afb97121b6e2cef6ca13a18e (diff)
Diffstat (limited to 'src/wx/content_panel.cc')
-rw-r--r--src/wx/content_panel.cc5
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 {