]> sigrok.org Git - pulseview.git/commitdiff
MainWindow: Don't return bogus view
authorSoeren Apel <redacted>
Sat, 3 Sep 2016 22:17:32 +0000 (00:17 +0200)
committerSoeren Apel <redacted>
Sat, 3 Sep 2016 22:17:32 +0000 (00:17 +0200)
pv/mainwindow.cpp

index 787e1acf96dfc9bc7a0e372001f5118e68025a85..92c92d023225a7d5fa7cb5f54764d4e1218b2a12 100644 (file)
@@ -163,7 +163,7 @@ shared_ptr<pv::view::View> MainWindow::get_active_view() const
                if (entry.first.get() == dock)
                        return entry.second;
 
-       return shared_ptr<pv::view::View>();
+       return nullptr;
 }
 
 shared_ptr<pv::view::View> MainWindow::add_view(const QString &title,