From d260d425863efa6d80a5a5f3d920373a6d159aef Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Thu, 13 Nov 2014 12:36:06 +0000 Subject: [PATCH] SigSession: Renamed get_device to device --- pv/mainwindow.cpp | 6 +++--- pv/popups/channels.cpp | 2 +- pv/sigsession.cpp | 2 +- pv/sigsession.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 6142709..170d14e 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -284,7 +284,7 @@ void MainWindow::save_ui_settings() settings.setValue("geometry", saveGeometry()); settings.endGroup(); - if (_session.get_device()) { + if (_session.device()) { settings.beginGroup("Device"); key_list.push_back("vendor"); key_list.push_back("model"); @@ -293,7 +293,7 @@ void MainWindow::save_ui_settings() key_list.push_back("connection_id"); dev_info = _device_manager.get_device_info( - _session.get_device()); + _session.device()); for (string key : key_list) { @@ -368,7 +368,7 @@ void MainWindow::update_device_list() { assert(_sampling_bar); - shared_ptr selected_device = _session.get_device(); + shared_ptr selected_device = _session.device(); list< shared_ptr > devices; if (_device_manager.devices().size() == 0) diff --git a/pv/popups/channels.cpp b/pv/popups/channels.cpp index 5a85445..f93734a 100644 --- a/pv/popups/channels.cpp +++ b/pv/popups/channels.cpp @@ -60,7 +60,7 @@ Channels::Channels(SigSession &session, QWidget *parent) : // Create the layout setLayout(&_layout); - shared_ptr device = _session.get_device(); + shared_ptr device = _session.device(); assert(device); // Collect a set of signals diff --git a/pv/sigsession.cpp b/pv/sigsession.cpp index 2d695af..ce74829 100644 --- a/pv/sigsession.cpp +++ b/pv/sigsession.cpp @@ -98,7 +98,7 @@ SigSession::~SigSession() stop_capture(); } -shared_ptr SigSession::get_device() const +shared_ptr SigSession::device() const { return _device; } diff --git a/pv/sigsession.h b/pv/sigsession.h index a624d1d..55da373 100644 --- a/pv/sigsession.h +++ b/pv/sigsession.h @@ -79,7 +79,7 @@ public: ~SigSession(); - std::shared_ptr get_device() const; + std::shared_ptr device() const; /** * Sets device instance that will be used in the next capture session. -- 2.30.2