1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-16 10:08:36 +03:00

0023809: New compiler warnings in new BOP, 64-bit VC++ 9.0.

Standard_Size have been replaced by Standard_Integer to avoid warnings.
This commit is contained in:
emv 2013-03-12 16:31:02 +04:00
parent 1d8ec4db0a
commit a82b7ef700
2 changed files with 25 additions and 25 deletions

View File

@ -193,31 +193,31 @@ template <class Type> class BOPCol_Array1 {
myExtent=0; myExtent=0;
} }
// SetStartSize // SetStartSize
void SetStartSize(const Standard_Size theSize) { void SetStartSize(const Standard_Integer theSize) {
if (theSize>0) { if (theSize>0) {
myStartSize=theSize; myStartSize=theSize;
} }
} }
// SetIncrement // SetIncrement
void SetIncrement(const Standard_Size theSize){ void SetIncrement(const Standard_Integer theSize){
if (theSize>0) { if (theSize>0) {
myIncrement=theSize; myIncrement=theSize;
} }
} }
// Increment // Increment
Standard_Size Increment()const { Standard_Integer Increment()const {
return myIncrement; return myIncrement;
} }
// Extent // Extent
Standard_Size Extent()const { Standard_Integer Extent()const {
return myExtent; return myExtent;
} }
// Size // Size
Standard_Size Size()const { Standard_Integer Size()const {
return myExtent; return myExtent;
} }
// Size // Size
Standard_Size Length()const { Standard_Integer Length()const {
return myExtent; return myExtent;
} }
// Init // Init
@ -250,9 +250,9 @@ template <class Type> class BOPCol_Array1 {
//========== //==========
// fields // fields
protected: protected:
Standard_Size myStartSize; Standard_Integer myStartSize;
Standard_Size myIncrement; Standard_Integer myIncrement;
Standard_Size myExtent; Standard_Integer myExtent;
Type myDfltItem; Type myDfltItem;
BOPCol_MemBlock<Type> * myPBlock; BOPCol_MemBlock<Type> * myPBlock;
BOPCol_MemBlock<Type> * myPBlock1; BOPCol_MemBlock<Type> * myPBlock1;

View File

@ -545,14 +545,14 @@ class BOPDS_InterfFF : public BOPDS_Interf {
* @param theNbPoints * @param theNbPoints
* number of intersection points * number of intersection points
*/ */
void Init(const Standard_Size theNbCurves, void Init(const Standard_Integer theNbCurves,
const Standard_Size theNbPoints) { const Standard_Integer theNbPoints) {
if (theNbCurves) { if (theNbCurves>0) {
myCurves.SetStartSize(theNbCurves); myCurves.SetStartSize(theNbCurves);
myCurves.SetIncrement(theNbCurves); myCurves.SetIncrement(theNbCurves);
myCurves.Init(); myCurves.Init();
} }
if (theNbPoints) { if (theNbPoints>0) {
myPoints.SetStartSize(theNbPoints); myPoints.SetStartSize(theNbPoints);
myPoints.SetIncrement(theNbPoints); myPoints.SetIncrement(theNbPoints);
myPoints.Init(); myPoints.Init();