X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdevices%2Fdevice.cpp;h=855a1d82fca65019952b1baf46f21aef60c859de;hb=f5a5b019c5679dbe6b4bc6f956c3820f47869bc1;hp=ec4318b4632989dac05641839742f7fd5ff3080d;hpb=efdec55aec1a137460fa362a381ed1904182bfed;p=pulseview.git diff --git a/pv/devices/device.cpp b/pv/devices/device.cpp index ec4318b4..855a1d82 100644 --- a/pv/devices/device.cpp +++ b/pv/devices/device.cpp @@ -23,12 +23,10 @@ #include "device.hpp" -using std::map; -using std::set; +using std::shared_ptr; using sigrok::ConfigKey; using sigrok::Capability; -using sigrok::Error; using Glib::VariantBase; using Glib::Variant; @@ -36,22 +34,18 @@ using Glib::Variant; namespace pv { namespace devices { -Device::Device() -{ -} - Device::~Device() { if (session_) session_->remove_datafeed_callbacks(); } -std::shared_ptr Device::session() const +shared_ptr Device::session() const { return session_; } -std::shared_ptr Device::device() const +shared_ptr Device::device() const { return device_; }