diff options
Diffstat (limited to 'src/wx/system_information_dialog.cc')
| -rw-r--r-- | src/wx/system_information_dialog.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/wx/system_information_dialog.cc b/src/wx/system_information_dialog.cc index 968cd5740..7aabf1bf5 100644 --- a/src/wx/system_information_dialog.cc +++ b/src/wx/system_information_dialog.cc @@ -38,8 +38,11 @@ using std::shared_ptr; SystemInformationDialog::SystemInformationDialog (wxWindow* parent, weak_ptr<FilmViewer> weak_viewer) : TableDialog (parent, _("System information"), 2, 1, false) { - shared_ptr<FilmViewer> viewer = weak_viewer.lock (); - GLVideoView const * gl = viewer ? dynamic_cast<GLVideoView const *>(viewer->video_view()) : 0; + auto viewer = weak_viewer.lock (); + shared_ptr<const GLVideoView> gl; + if (viewer) { + gl = std::dynamic_pointer_cast<const GLVideoView>(viewer->video_view()); + } if (!gl) { add (_("OpenGL version"), true); |
