Don't try to store a reference to a shared pointer.
[pulseview.git] / pv / devices / sessionfile.hpp
index 0fcaa34cb767b3c3066e28f34d577a33aad42106..0a546f0cc598be88747ebfe57cf0aec5138d3597 100644 (file)
 #ifndef PULSEVIEW_PV_DEVICES_SESSIONFILE_HPP
 #define PULSEVIEW_PV_DEVICES_SESSIONFILE_HPP
 
-#include <string>
 #include <memory>
 
-#include "device.hpp"
+#include "file.hpp"
 
 namespace sigrok {
 class Context;
@@ -33,17 +32,16 @@ class Context;
 namespace pv {
 namespace devices {
 
-class SessionFile final : public Device
+class SessionFile final : public File
 {
 public:
-       SessionFile(const std::shared_ptr<sigrok::Context> &context,
+       SessionFile(const std::shared_ptr<sigrok::Context> context,
                const std::string &file_name);
 
        void create();
 
 private:
-       const std::shared_ptr<sigrok::Context> &context_;
-       const std::string file_name_;
+       const std::shared_ptr<sigrok::Context> context_;
 };
 
 } // namespace devices