Salome HOME
Merge branch 'V9_9_BR'
[modules/smesh.git] / src / DriverUNV / UNV_Utilities.hxx
index db3659f6b8bbed124fc9065468aee1af110f7b1d..3dfc9c7d4e70115d0bcce9503659ebfe0fdea2b2 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2019  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2022  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -33,8 +33,7 @@
 #include <cassert>
 #include <cstdlib>
 
-namespace UNV{
-  using namespace std;
+namespace UNV {
 
   const size_t theMaxLineLen = 82; // 80 for text + 2 for "\r\n"
 
@@ -44,7 +43,7 @@ namespace UNV{
     PrefixPrinter();
     ~PrefixPrinter();
 
-    static string GetPrefix();
+    static std::string GetPrefix();
   };
 
   /**
@@ -80,6 +79,8 @@ namespace UNV{
       }
       if (news == ds_name)
         return true;
+
+      olds.clear();
     }
     // should never end up here
     return false;
@@ -140,7 +141,7 @@ namespace UNV{
       resLine.resize( resLine.size()-1 );
     return resLine;
   }
-};
+}
 
 
 #ifndef MESSAGE