]> Creatis software - clitk.git/commitdiff
Constructor of vvImageWriter is now private
authorsrit <srit>
Fri, 1 Apr 2011 10:02:22 +0000 (10:02 +0000)
committersrit <srit>
Fri, 1 Apr 2011 10:02:22 +0000 (10:02 +0000)
vv/vvSegmentationDialog.cxx

index 4fb788e45384bbd865cd99523f8dd3a5de5c7f56..1ea50fbef6a27be623dc1fc1e2f2bcbbab6dd103 100644 (file)
@@ -546,7 +546,7 @@ void vvSegmentationDialog::Save()
         QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
         vvProgressDialog progress("Saving "+fileName.toStdString());
         qApp->processEvents();
-        vvImageWriter *writer = new vvImageWriter;
+        vvImageWriter::Pointer writer = vvImageWriter::New();
         writer->SetOutputFileName(fileName.toStdString());
         writer->SetInput(mManager->GetSlicer(0)->GetImage());
         writer->Update(dimension,"unsigned_char");