X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdevices%2Fdevice.cpp;h=de489bc2a6f292c909b5156c4b9676f0fd8a0d08;hp=ec4318b4632989dac05641839742f7fd5ff3080d;hb=6f925ba9d6faf1077b73c5a5808259576081716a;hpb=efdec55aec1a137460fa362a381ed1904182bfed diff --git a/pv/devices/device.cpp b/pv/devices/device.cpp index ec4318b..de489bc 100644 --- a/pv/devices/device.cpp +++ b/pv/devices/device.cpp @@ -25,6 +25,7 @@ using std::map; using std::set; +using std::shared_ptr; using sigrok::ConfigKey; using sigrok::Capability; @@ -36,22 +37,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_; }