From 5008029610bc19d1d4294a9c025448016648b366 Mon Sep 17 00:00:00 2001 From: srit Date: Fri, 1 Apr 2011 10:02:22 +0000 Subject: [PATCH] Constructor of vvImageWriter is now private --- vv/vvSegmentationDialog.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.47.1