Death to stupid mussa pointers
[mussa.git] / qui / MussaWindow.hpp
index 5adabde7a81553e7c808e7bebd1a42cb1b52c057..ed34adb5fe7647d5a219e6b688f9792bc2887b08 100644 (file)
@@ -30,13 +30,13 @@ class MussaWindow : public QMainWindow
   Q_OBJECT
 
 public: 
-  MussaWindow(Mussa* analysis=0, QWidget *parent=0);
+  MussaWindow(MussaRef analysis=0, QWidget *parent=0);
 
   //! reset any attached window
   void clear();
 
   //! switch to a new analysis
-  void setAnalysis(Mussa *new_analysis);
+  void setAnalysis(MussaRef new_analysis);
 
   //! ask the user what to do if we're going to lose data
   //! returns true if getting rid of this analysis is safe
@@ -95,8 +95,8 @@ signals:
   void changedAnnotations();
 
 protected:
-  //! reference to our analysis
-  Mussa *analysis;
+  //! shared_ptr to our analysis
+  MussaRef analysis;
   //! the default directory we should loand and save from
   boost::filesystem::path default_dir;
   std::list<boost::shared_ptr<MussaAlignedWindow> > aligned_windows;