X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdevices%2Fsessionfile.cpp;h=7bcabee036cef366eb59d6cd3d5e4731ae1e9bfe;hb=c0100b555bf50188cfdf181e60d84287e12b0869;hp=687c52bdcd5a225a29d1cdfaeffac104b7c4c9a3;hpb=b485408f20c39ae8d05372a5faffe15653c74705;p=pulseview.git diff --git a/pv/devices/sessionfile.cpp b/pv/devices/sessionfile.cpp index 687c52b..7bcabee 100644 --- a/pv/devices/sessionfile.cpp +++ b/pv/devices/sessionfile.cpp @@ -29,16 +29,8 @@ namespace devices { SessionFile::SessionFile(const std::shared_ptr &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() {