mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +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:
parent
1d8ec4db0a
commit
a82b7ef700
@ -193,31 +193,31 @@ template <class Type> class BOPCol_Array1 {
|
||||
myExtent=0;
|
||||
}
|
||||
// SetStartSize
|
||||
void SetStartSize(const Standard_Size theSize) {
|
||||
void SetStartSize(const Standard_Integer theSize) {
|
||||
if (theSize>0) {
|
||||
myStartSize=theSize;
|
||||
}
|
||||
}
|
||||
// SetIncrement
|
||||
void SetIncrement(const Standard_Size theSize){
|
||||
void SetIncrement(const Standard_Integer theSize){
|
||||
if (theSize>0) {
|
||||
myIncrement=theSize;
|
||||
}
|
||||
}
|
||||
// Increment
|
||||
Standard_Size Increment()const {
|
||||
Standard_Integer Increment()const {
|
||||
return myIncrement;
|
||||
}
|
||||
// Extent
|
||||
Standard_Size Extent()const {
|
||||
Standard_Integer Extent()const {
|
||||
return myExtent;
|
||||
}
|
||||
// Size
|
||||
Standard_Size Size()const {
|
||||
Standard_Integer Size()const {
|
||||
return myExtent;
|
||||
}
|
||||
// Size
|
||||
Standard_Size Length()const {
|
||||
Standard_Integer Length()const {
|
||||
return myExtent;
|
||||
}
|
||||
// Init
|
||||
@ -250,9 +250,9 @@ template <class Type> class BOPCol_Array1 {
|
||||
//==========
|
||||
// fields
|
||||
protected:
|
||||
Standard_Size myStartSize;
|
||||
Standard_Size myIncrement;
|
||||
Standard_Size myExtent;
|
||||
Standard_Integer myStartSize;
|
||||
Standard_Integer myIncrement;
|
||||
Standard_Integer myExtent;
|
||||
Type myDfltItem;
|
||||
BOPCol_MemBlock<Type> * myPBlock;
|
||||
BOPCol_MemBlock<Type> * myPBlock1;
|
||||
|
@ -545,14 +545,14 @@ class BOPDS_InterfFF : public BOPDS_Interf {
|
||||
* @param theNbPoints
|
||||
* number of intersection points
|
||||
*/
|
||||
void Init(const Standard_Size theNbCurves,
|
||||
const Standard_Size theNbPoints) {
|
||||
if (theNbCurves) {
|
||||
void Init(const Standard_Integer theNbCurves,
|
||||
const Standard_Integer theNbPoints) {
|
||||
if (theNbCurves>0) {
|
||||
myCurves.SetStartSize(theNbCurves);
|
||||
myCurves.SetIncrement(theNbCurves);
|
||||
myCurves.Init();
|
||||
}
|
||||
if (theNbPoints) {
|
||||
if (theNbPoints>0) {
|
||||
myPoints.SetStartSize(theNbPoints);
|
||||
myPoints.SetIncrement(theNbPoints);
|
||||
myPoints.Init();
|
||||
|
Loading…
x
Reference in New Issue
Block a user