diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-04 21:16:53 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-07 22:48:29 +0100 |
| commit | dd9be86db6cde0afa5da0d1d1ac43b42e05dca26 (patch) | |
| tree | e56a3f82fb9e1c8602f265bea0d0688d8a018644 /src/wx/text_panel.cc | |
| parent | 0d35820cf50d2789752b8776683b26d04642518d (diff) | |
std::shared_ptr
Diffstat (limited to 'src/wx/text_panel.cc')
| -rw-r--r-- | src/wx/text_panel.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wx/text_panel.cc b/src/wx/text_panel.cc index b21d33ce5..5b54fa35b 100644 --- a/src/wx/text_panel.cc +++ b/src/wx/text_panel.cc @@ -49,9 +49,9 @@ using std::vector; using std::string; using std::list; using std::cout; -using boost::shared_ptr; +using std::shared_ptr; using boost::optional; -using boost::dynamic_pointer_cast; +using std::dynamic_pointer_cast; using boost::bind; /** @param t Original text type of the content, if known */ @@ -512,10 +512,10 @@ TextPanel::setup_sensitivity () ContentList sel = _parent->selected_text (); BOOST_FOREACH (shared_ptr<Content> i, sel) { /* These are the content types that could include subtitles */ - shared_ptr<const FFmpegContent> fc = boost::dynamic_pointer_cast<const FFmpegContent> (i); - shared_ptr<const StringTextFileContent> sc = boost::dynamic_pointer_cast<const StringTextFileContent> (i); - shared_ptr<const DCPContent> dc = boost::dynamic_pointer_cast<const DCPContent> (i); - shared_ptr<const DCPSubtitleContent> dsc = boost::dynamic_pointer_cast<const DCPSubtitleContent> (i); + shared_ptr<const FFmpegContent> fc = std::dynamic_pointer_cast<const FFmpegContent> (i); + shared_ptr<const StringTextFileContent> sc = std::dynamic_pointer_cast<const StringTextFileContent> (i); + shared_ptr<const DCPContent> dc = std::dynamic_pointer_cast<const DCPContent> (i); + shared_ptr<const DCPSubtitleContent> dsc = std::dynamic_pointer_cast<const DCPSubtitleContent> (i); if (fc) { if (!fc->text.empty()) { ++ffmpeg_subs; |
