From f01913f876a5c796a39078ef26d87a126d9f6d91 Mon Sep 17 00:00:00 2001 From: ouv Date: Fri, 8 Sep 2006 08:16:58 +0000 Subject: [PATCH] SWP13333 : Copy/Paste med-objects in Post-Pro is incorrect --- src/TOOLSDS/SALOMEDS_Tool.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/TOOLSDS/SALOMEDS_Tool.cxx b/src/TOOLSDS/SALOMEDS_Tool.cxx index b47af559f..e67c96a5e 100644 --- a/src/TOOLSDS/SALOMEDS_Tool.cxx +++ b/src/TOOLSDS/SALOMEDS_Tool.cxx @@ -141,11 +141,11 @@ void SALOMEDS_Tool::RemoveTemporaryFiles(const std::string& theDirectory, if(IsDirDeleted) { OSD_Path aPath(aDirName); OSD_Directory aDir(aPath); - OSD_FileIterator anIterator(aPath, '*'); + OSD_FileIterator* anIterator = new OSD_FileIterator(aPath, '*'); - if(aDir.Exists() && !anIterator.More()) + if(aDir.Exists() && !anIterator->More()) { - anIterator.Destroy(); + delete anIterator; aDir.Remove(); } } -- 2.39.2