Death to stupid mussa pointers
[mussa.git] / qui / SubanalysisWindow.cpp
index 5fdafcdb80a73824dd51693ed0429cea5c833d4e..34ef9aa9b0b2dbe8b778d69bdd22b46d4a28abfe 100644 (file)
@@ -80,8 +80,8 @@ void SubanalysisWindow::run()
                              "empty model now.");
   }
 
-  std::auto_ptr<Mussa> m(new Mussa);
-
+  MussaRef m(new Mussa);
+  
   for(SequenceLocationModel::iterator itor = model.begin();
       itor != model.end();
       ++itor)
@@ -94,7 +94,7 @@ void SubanalysisWindow::run()
   m->set_window(window->value());
   m->set_threshold(threshold->value());
   m->analyze();
-  MussaWindow *mw = new MussaWindow(m.get());
+  MussaWindow *mw = new MussaWindow(m);
   mw->show();
   model.clear();
   hide();