X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FDriverUNV%2FUNV_Utilities.hxx;h=3dfc9c7d4e70115d0bcce9503659ebfe0fdea2b2;hb=d1a4e96b1a71671fa1f529461744d55df36df7b6;hp=03c2a1caee55d6259f70dc5aa7b00f2ae5548f47;hpb=e74c29b7867ca230102fc580d831dda6b81b3b4c;p=modules%2Fsmesh.git diff --git a/src/DriverUNV/UNV_Utilities.hxx b/src/DriverUNV/UNV_Utilities.hxx index 03c2a1cae..3dfc9c7d4 100644 --- a/src/DriverUNV/UNV_Utilities.hxx +++ b/src/DriverUNV/UNV_Utilities.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 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 #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