]> sigrok.org Git - pulseview.git/blobdiff - pv/devices/sessionfile.cpp
Don't try to store a reference to a shared pointer.
[pulseview.git] / pv / devices / sessionfile.cpp
index 687c52bdcd5a225a29d1cdfaeffac104b7c4c9a3..d45b9fa492832bc147c7ea7aadcc8e06c446d263 100644 (file)
 namespace pv {
 namespace devices {
 
-SessionFile::SessionFile(const std::shared_ptr<sigrok::Context> &context,
+SessionFile::SessionFile(const std::shared_ptr<sigrok::Context> context,
        const std::string &file_name) :
-       context_(context),
-       file_name_(file_name) {
-}
-
-std::string SessionFile::full_name() const {
-       return boost::filesystem::path(file_name_).filename().string();
-}
-
-std::string SessionFile::display_name(const DeviceManager&) const {
-       return SessionFile::full_name();
+       File(file_name),
+       context_(context) {
 }
 
 void SessionFile::create() {