]> sigrok.org Git - pulseview.git/commitdiff
Don't try to store a reference to a shared pointer.
authorMartin Ling <redacted>
Tue, 25 Aug 2015 18:30:39 +0000 (19:30 +0100)
committerUwe Hermann <redacted>
Tue, 25 Aug 2015 23:00:14 +0000 (01:00 +0200)
Fixes #596.

pv/devices/sessionfile.cpp
pv/devices/sessionfile.hpp

index 7bcabee036cef366eb59d6cd3d5e4731ae1e9bfe..d45b9fa492832bc147c7ea7aadcc8e06c446d263 100644 (file)
@@ -27,7 +27,7 @@
 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) :
        File(file_name),
        context_(context) {
index 97131676c9c20cb283d6b6a8453812cbc7f7218a..0a546f0cc598be88747ebfe57cf0aec5138d3597 100644 (file)
@@ -35,13 +35,13 @@ namespace devices {
 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::shared_ptr<sigrok::Context> context_;
 };
 
 } // namespace devices