From 1e66d4be13a6aa8edf3176fcf2e27acf6690fe7c Mon Sep 17 00:00:00 2001 From: ana Date: Thu, 25 Sep 2014 18:01:52 +0400 Subject: [PATCH] Win32 compatibility --- src/Plugins/MEDReader/IO/vtkELNOMeshFilter.cxx | 2 +- src/Plugins/MEDReader/IO/vtkGenerateVectors.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plugins/MEDReader/IO/vtkELNOMeshFilter.cxx b/src/Plugins/MEDReader/IO/vtkELNOMeshFilter.cxx index 1eb4c7ab..deffb070 100644 --- a/src/Plugins/MEDReader/IO/vtkELNOMeshFilter.cxx +++ b/src/Plugins/MEDReader/IO/vtkELNOMeshFilter.cxx @@ -108,7 +108,7 @@ int vtkELNOMeshFilter::RequestData(vtkInformation *request, for(int index = 0; index < fielddata->GetNumberOfArrays(); index++) { vtkDataArray *data(fielddata->GetArray(index)); - vtkQuadratureSchemeDefinition **dict(0); + vtkQuadratureSchemeDefinition **dict = 0; vtkInformationQuadratureSchemeDefinitionVectorKey *key(vtkQuadratureSchemeDefinition::DICTIONARY()); if(key->Has(data->GetInformation())) { diff --git a/src/Plugins/MEDReader/IO/vtkGenerateVectors.cxx b/src/Plugins/MEDReader/IO/vtkGenerateVectors.cxx index 10ac9058..89266bbd 100644 --- a/src/Plugins/MEDReader/IO/vtkGenerateVectors.cxx +++ b/src/Plugins/MEDReader/IO/vtkGenerateVectors.cxx @@ -128,7 +128,7 @@ void vtkGenerateVectors::UpdateInformationOfArray(vtkDoubleArray *oldArr, vtkDou if(key->Has(oldArr->GetInformation())) { int dictSize(key->Size(oldArr->GetInformation())); - vtkQuadratureSchemeDefinition **dict(new vtkQuadratureSchemeDefinition *[dictSize]); + vtkQuadratureSchemeDefinition **dict = new vtkQuadratureSchemeDefinition *[dictSize]; key->GetRange(oldArr->GetInformation(),dict,0,0,dictSize); key->SetRange(arr->GetInformation(),dict,0,0,dictSize); delete [] dict; -- 2.39.2