From: Carl Hetherington Date: Sat, 9 Apr 2022 11:58:49 +0000 (+0200) Subject: C++11 tidying. X-Git-Tag: v2.16.10~74 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=fb6e245fa03e5720b8f8fdea3e2228536b22d5cf C++11 tidying. --- diff --git a/src/wx/config_dialog.h b/src/wx/config_dialog.h index ce5df2c5b..eade69043 100644 --- a/src/wx/config_dialog.h +++ b/src/wx/config_dialog.h @@ -18,36 +18,40 @@ */ + #ifndef DCPOMATIC_CONFIG_DIALOG_H #define DCPOMATIC_CONFIG_DIALOG_H -#include "wx_util.h" + #include "editable_list.h" #include "make_chain_dialog.h" +#include "wx_util.h" #include "lib/config.h" -#include "lib/ratio.h" -#include "lib/filter.h" +#include "lib/cross.h" #include "lib/dcp_content_type.h" +#include "lib/exceptions.h" +#include "lib/filter.h" #include "lib/log.h" +#include "lib/ratio.h" #include "lib/util.h" -#include "lib/cross.h" -#include "lib/exceptions.h" #include "lib/warnings.h" -#include -#include #include +#include +#include DCPOMATIC_DISABLE_WARNINGS -#include +#include #include #include -#include -DCPOMATIC_ENABLE_WARNINGS +#include #include +DCPOMATIC_ENABLE_WARNINGS #include #include + class AudioMappingView; + class Page : public wxPreferencesPage { public: @@ -74,6 +78,7 @@ private: bool _window_exists; }; + class GeneralPage : public Page { public: @@ -106,6 +111,7 @@ private: wxCheckBox* _check_for_test_updates; }; + class CertificateChainEditor : public wxDialog { public: @@ -214,6 +220,7 @@ private: Button* _reset_to_default; }; + class LocationsPage : public Page { public: @@ -236,4 +243,5 @@ private: wxDirPickerCtrl* _playlist_directory; wxDirPickerCtrl* _kdm_directory; }; + #endif diff --git a/src/wx/film_viewer.h b/src/wx/film_viewer.h index 64ac885e3..0569131ea 100644 --- a/src/wx/film_viewer.h +++ b/src/wx/film_viewer.h @@ -31,21 +31,21 @@ #include "lib/timer.h" #include "lib/signaller.h" #include "lib/warnings.h" -#include DCPOMATIC_DISABLE_WARNINGS +#include #include DCPOMATIC_ENABLE_WARNINGS #include -class wxToggleButton; +class Butler; +class ClosedCaptionsDialog; class FFmpegPlayer; class Image; -class RGBPlusAlphaImage; -class PlayerVideo; class Player; -class Butler; -class ClosedCaptionsDialog; +class PlayerVideo; +class RGBPlusAlphaImage; +class wxToggleButton; /** @class FilmViewer diff --git a/src/wx/playlist_controls.h b/src/wx/playlist_controls.h index 57a84c128..bc283f288 100644 --- a/src/wx/playlist_controls.h +++ b/src/wx/playlist_controls.h @@ -18,11 +18,14 @@ */ + #include "controls.h" #include "lib/spl.h" + class DCPContent; + class PlaylistControls : public Controls { public: diff --git a/src/wx/playlist_editor_config_dialog.cc b/src/wx/playlist_editor_config_dialog.cc index 63a28b5dd..d5c4106ea 100644 --- a/src/wx/playlist_editor_config_dialog.cc +++ b/src/wx/playlist_editor_config_dialog.cc @@ -28,17 +28,17 @@ wxPreferencesEditor* create_playlist_editor_config_dialog () { - wxPreferencesEditor* e = new wxPreferencesEditor (_("DCP-o-matic Playlist Editor Preferences")); + auto e = new wxPreferencesEditor (_("DCP-o-matic Playlist Editor Preferences")); #ifdef DCPOMATIC_OSX /* Width that we force some of the config panels to be on OSX so that the containing window doesn't shrink too much when we select those panels. This is obviously an unpleasant hack. */ - wxSize ps = wxSize (520, -1); + auto ps = wxSize (520, -1); int const border = 16; #else - wxSize ps = wxSize (-1, -1); + auto ps = wxSize (-1, -1); int const border = 8; #endif