1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0023072: Eliminate compiler warnings (level 3) on Windows / MSVC++

This commit is contained in:
dbv
2012-06-25 11:31:40 +04:00
parent 9d091ec153
commit 60be1f9b1d
47 changed files with 126 additions and 121 deletions

View File

@@ -178,7 +178,7 @@ void TopTools_LocationSet::Dump(Standard_OStream& OS) const
void TopTools_LocationSet::Write(Standard_OStream& OS) const
{
int prec = OS.precision(15);
std::streamsize prec = OS.precision(15);
Standard_Integer i, nbLoc = myMap.Extent();
OS << "Locations " << nbLoc << "\n";

View File

@@ -458,7 +458,7 @@ void TopTools_ShapeSet::Write(Standard_OStream& OS)
// on positionne LC_NUMERIC a "C" (point decimal)
setlocale(LC_NUMERIC, "C") ;
int prec = OS.precision(15);
std::streamsize prec = OS.precision(15);
// write the copyright
if (myFormatNb == 2)
@@ -642,7 +642,7 @@ void TopTools_ShapeSet::Read(Standard_IStream& IS)
//if(pm = strchr(vers,'\r'))
// *pm ='\0';
for (Standard_Integer lv = (strlen(vers)- 1); lv > 1 && (vers[lv] == '\r' || vers[lv] == '\n') ;lv--)
for (Standard_Size lv = (strlen(vers)- 1); lv > 1 && (vers[lv] == '\r' || vers[lv] == '\n') ;lv--)
vers[lv] = '\0';
} while ( ! IS.fail() && strcmp(vers,Version) && strcmp(vers,Version2) );