From 21e70d28cc0270e458c570173a020a9db3b017b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Dom=C3=ADnguez?= Date: Sat, 19 Oct 2024 00:10:20 +0200 Subject: [PATCH] Replace boost::scoped_ptr with std::unique_ptr (2/2) --- gtk2_ardour/engine_dialog.cc | 2 -- gtk2_ardour/export_dialog.h | 10 ++++------ gtk2_ardour/time_axis_view.cc | 4 +--- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/gtk2_ardour/engine_dialog.cc b/gtk2_ardour/engine_dialog.cc index 40fb71a758..38863fe173 100644 --- a/gtk2_ardour/engine_dialog.cc +++ b/gtk2_ardour/engine_dialog.cc @@ -27,8 +27,6 @@ #include #include -#include - #include "pbd/error.h" #include "pbd/failed_constructor.h" #include "pbd/locale_guard.h" diff --git a/gtk2_ardour/export_dialog.h b/gtk2_ardour/export_dialog.h index ae2006c50e..c3b31e1e43 100644 --- a/gtk2_ardour/export_dialog.h +++ b/gtk2_ardour/export_dialog.h @@ -25,8 +25,6 @@ #pragma once #include -#include - #include #include #include @@ -88,10 +86,10 @@ protected: // Must initialize all the shared_ptrs below virtual void init_components (); - boost::scoped_ptr preset_selector; - boost::scoped_ptr timespan_selector; - boost::scoped_ptr channel_selector; - boost::scoped_ptr file_notebook; + std::unique_ptr preset_selector; + std::unique_ptr timespan_selector; + std::unique_ptr channel_selector; + std::unique_ptr file_notebook; std::shared_ptr soundcloud_selector; diff --git a/gtk2_ardour/time_axis_view.cc b/gtk2_ardour/time_axis_view.cc index b5a29c09ba..359b631c0e 100644 --- a/gtk2_ardour/time_axis_view.cc +++ b/gtk2_ardour/time_axis_view.cc @@ -30,8 +30,6 @@ #include #include -#include - #include #include "pbd/error.h" @@ -164,7 +162,7 @@ TimeAxisView::TimeAxisView (ARDOUR::Session* sess, PublicEditor& ed, TimeAxisVie set_tooltip (inactive_label, _("This track is inactive. (right-click to activate)")); { - boost::scoped_ptr an_entry (new FocusEntry); + const std::unique_ptr an_entry (new FocusEntry); an_entry->set_name (X_("TrackNameEditor")); Gtk::Requisition req = an_entry->size_request ();