From: srit Date: Fri, 1 Apr 2011 10:02:22 +0000 (+0000) Subject: Constructor of vvImageWriter is now private X-Git-Tag: v1.2.0~74 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=5008029610bc19d1d4294a9c025448016648b366;p=clitk.git Constructor of vvImageWriter is now private --- diff --git a/vv/vvSegmentationDialog.cxx b/vv/vvSegmentationDialog.cxx index 4fb788e..1ea50fb 100644 --- a/vv/vvSegmentationDialog.cxx +++ b/vv/vvSegmentationDialog.cxx @@ -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");