X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ftext_view.h;h=8cf3c78bbf580480270810723f06878204f50a47;hb=e7d8a70a16f972de2861bb1464dec6df3d26c579;hp=24641b2ab856d9d7b89f8e502fe32cceee477091;hpb=b9a1ad3df5f9d85fb7439efd93fede72b9b078af;p=dcpomatic.git diff --git a/src/wx/text_view.h b/src/wx/text_view.h index 24641b2ab..8cf3c78bb 100644 --- a/src/wx/text_view.h +++ b/src/wx/text_view.h @@ -19,11 +19,11 @@ */ #include "lib/content_text.h" -#include "lib/warnings.h" -DCPOMATIC_DISABLE_WARNINGS +#include +LIBDCP_DISABLE_WARNINGS #include #include -DCPOMATIC_ENABLE_WARNINGS +LIBDCP_ENABLE_WARNINGS class Decoder; class FilmViewer; @@ -38,7 +38,7 @@ public: std::shared_ptr content, std::shared_ptr caption, std::shared_ptr, - std::weak_ptr viewer + FilmViewer& viewer ); private: @@ -52,5 +52,5 @@ private: boost::optional _last_count; std::vector _start_times; std::weak_ptr _content; - std::weak_ptr _film_viewer; + FilmViewer& _film_viewer; };