X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ftimeline_text_content_view.cc;h=934bf1fc4be12eb812da60a0a9253d08bf99536d;hb=HEAD;hp=30158941c2fe711536ebde5ed9d7feafd8675e12;hpb=cbd4450197a083bf58bda510e626f73ba583cb66;p=dcpomatic.git diff --git a/src/wx/timeline_text_content_view.cc b/src/wx/timeline_text_content_view.cc index 30158941c..a57398599 100644 --- a/src/wx/timeline_text_content_view.cc +++ b/src/wx/timeline_text_content_view.cc @@ -18,13 +18,16 @@ */ + #include "timeline_text_content_view.h" -#include "lib/caption_content.h" +#include "lib/text_content.h" #include "lib/content.h" -using boost::shared_ptr; -TimelineTextContentView::TimelineTextContentView (Timeline& tl, shared_ptr c, shared_ptr caption) +using std::shared_ptr; + + +TimelineTextContentView::TimelineTextContentView (Timeline& tl, shared_ptr c, shared_ptr caption) : TimelineContentView (tl, c) , _caption (caption) { @@ -54,7 +57,5 @@ TimelineTextContentView::foreground_colour () const bool TimelineTextContentView::active () const { - shared_ptr c = _content.lock (); - DCPOMATIC_ASSERT (c); return _caption->use(); }