]> SALOME platform Git repositories - plugins/netgenplugin.git/commitdiff
Salome HOME
Delete deprecated code
authormpa <mpa@opencascade.com>
Wed, 18 Jan 2017 13:17:01 +0000 (16:17 +0300)
committermpa <mpa@opencascade.com>
Wed, 18 Jan 2017 13:17:01 +0000 (16:17 +0300)
src/NETGENPlugin/NETGENPlugin_Mesher.cxx

index e58bea5fc5788731bd8f1606e96c3fdcca7da120..6082f9502095e3863ff4478336615aa53a2f829e 100644 (file)
@@ -4089,10 +4089,10 @@ void NETGENPlugin_NetgenLibWrapper::removeOutputFile()
     }
     string    tmpDir = SALOMEDS_Tool::GetDirFromPath ( _outputFileName );
     string aFileName = SALOMEDS_Tool::GetNameFromPath( _outputFileName ) + ".out";
-    SALOMEDS::ListOfFileNames_var aFiles = new SALOMEDS::ListOfFileNames;
-    aFiles->length(1);
-    aFiles[0] = aFileName.c_str();
+    SALOMEDS_Tool::ListOfFiles aFiles;
+    aFiles.reserve(1);
+    aFiles.push_back(aFileName.c_str());
 
-    SALOMEDS_Tool::RemoveTemporaryFiles( tmpDir.c_str(), aFiles.in(), true );
+    SALOMEDS_Tool::RemoveTemporaryFiles( tmpDir.c_str(), aFiles, true );
   }
 }