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

0024186: Eliminate remaining compiler warnings in MSVC++ 2010 64 bit with warning level 4

Eliminated some warnings of type C4267 (conversion from Type1 to Type2: possible loss of data); size_t to int explicit casts added.
Fixed warning C4267 and 4244 in OSD* files

Change in OSD_FileNode and OSD_File reverted since different handle types are needed on Unix and Windows
This commit is contained in:
omy
2013-09-26 17:20:52 +04:00
committed by bugmaster
parent b62b3e079f
commit 7dc9e04716
37 changed files with 93 additions and 100 deletions

View File

@@ -132,7 +132,7 @@ class VrmlData_IndexedFaceSet : public VrmlData_Faceted
/**
* Set the polygons
*/
inline void SetPolygons (const Standard_Integer nPolygons,
inline void SetPolygons (const Standard_Size nPolygons,
const Standard_Integer ** thePolygons)
{ myNbPolygons = nPolygons; myArrPolygons = thePolygons; }
@@ -183,7 +183,7 @@ class VrmlData_IndexedFaceSet : public VrmlData_Faceted
/**
* Set the normals array of indice
*/
inline void SetNormalInd (const Standard_Integer nIndice,
inline void SetNormalInd (const Standard_Size nIndice,
const Standard_Integer ** theIndice)
{ myNbNormals = nIndice; myArrNormalInd = theIndice; }
@@ -231,7 +231,7 @@ class VrmlData_IndexedFaceSet : public VrmlData_Faceted
/**
* Set the colors array of indice
*/
inline void SetColorInd (const Standard_Integer nIndice,
inline void SetColorInd (const Standard_Size nIndice,
const Standard_Integer ** theIndice)
{ myNbColors = nIndice; myArrColorInd = theIndice; }
@@ -264,7 +264,7 @@ class VrmlData_IndexedFaceSet : public VrmlData_Faceted
/**
* Set the TexCoordiante array of indice
*/
inline void SetTextureCoordInd (const Standard_Integer nIndice,
inline void SetTextureCoordInd (const Standard_Size nIndice,
const Standard_Integer ** theIndice)
{ myNbTextures = nIndice; myArrTextureInd = theIndice; }

View File

@@ -112,7 +112,7 @@ class VrmlData_IndexedLineSet : public VrmlData_Geometry
/**
* Set the polygons
*/
inline void SetPolygons (const Standard_Integer nPolygons,
inline void SetPolygons (const Standard_Size nPolygons,
const Standard_Integer ** thePolygons)
{ myNbPolygons = nPolygons; myArrPolygons = thePolygons; }
@@ -147,7 +147,7 @@ class VrmlData_IndexedLineSet : public VrmlData_Geometry
/**
* Set the colors array of indice
*/
inline void SetColorInd (const Standard_Integer nIndice,
inline void SetColorInd (const Standard_Size nIndice,
const Standard_Integer ** theIndice)
{ myNbColors = nIndice; myArrColorInd = theIndice; }