X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdialogs%2Fconnect.hpp;h=b35f5899f502d0419f87a456d0cabe8f5485a53b;hp=ce97ba80895959d8cf4241e2989e1af99116be28;hb=6f925ba9d6faf1077b73c5a5808259576081716a;hpb=1ebe875c5a51548c5182353e76c090215a3e5930 diff --git a/pv/dialogs/connect.hpp b/pv/dialogs/connect.hpp index ce97ba80..b35f5899 100644 --- a/pv/dialogs/connect.hpp +++ b/pv/dialogs/connect.hpp @@ -14,8 +14,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ #ifndef PULSEVIEW_PV_CONNECT_HPP @@ -35,6 +34,8 @@ #include #include +using std::shared_ptr; + namespace sigrok { class Driver; } @@ -45,8 +46,8 @@ class HardwareDevice; } } -Q_DECLARE_METATYPE(std::shared_ptr); -Q_DECLARE_METATYPE(std::shared_ptr); +Q_DECLARE_METATYPE(shared_ptr); +Q_DECLARE_METATYPE(shared_ptr); namespace pv { @@ -61,12 +62,12 @@ class Connect : public QDialog public: Connect(QWidget *parent, pv::DeviceManager &device_manager); - std::shared_ptr get_selected_device() const; + shared_ptr get_selected_device() const; private: void populate_drivers(); - void populate_serials(std::shared_ptr driver); + void populate_serials(shared_ptr driver); void unset_connection();