X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FDriverUNV%2FUNV_Utilities.hxx;h=6792d4f1d90df1a3ae32382cfb70a4f654320edc;hb=4e808b34f93eb49f2401a9c342a7f306e5784dce;hp=db3659f6b8bbed124fc9065468aee1af110f7b1d;hpb=385d4cede5f752d0eec26c306f3b5e14511e2a3d;p=modules%2Fsmesh.git diff --git a/src/DriverUNV/UNV_Utilities.hxx b/src/DriverUNV/UNV_Utilities.hxx index db3659f6b..6792d4f1d 100644 --- a/src/DriverUNV/UNV_Utilities.hxx +++ b/src/DriverUNV/UNV_Utilities.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2019 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2020 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 #include -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