Fix som ewarnings

This commit is contained in:
eap 2021-03-15 18:06:53 +03:00
parent 6d54a9deb2
commit af8ab09bab
3 changed files with 4 additions and 4 deletions

View File

@ -97,7 +97,7 @@ class SMDS_EXPORT SMDS_VolumeTool
const SMDS_MeshNode** GetNodes() const { return (const SMDS_MeshNode**) &myVolumeNodes[0]; }
// Return array of volume nodes
int NbNodes() const { return myVolumeNodes.size(); }
int NbNodes() const { return (int) myVolumeNodes.size(); }
// Return array of volume nodes
double GetSize() const;

View File

@ -108,7 +108,7 @@ class SMESHUtils_EXPORT SMESH_OctreeNode : public SMESH_Octree
/*!
* \brief Return nb nodes in a tree
*/
int NbNodes() const { return myNodes.size(); }
size_t NbNodes() const { return myNodes.size(); }
protected:

View File

@ -68,7 +68,7 @@ public:
void SetObjects(SMESH::string_array_var& objEntries);
template<class TInterface>
typename TInterface::_var_type GetObject(unsigned i=0) const {
typename TInterface::_var_type GetObject(size_t i=0) const {
if ( IsObjectSelected(i) ) return TInterface::_narrow(myObjects[i]);
return TInterface::_nil();
}
@ -77,7 +77,7 @@ public:
QString GetValue() const { return myParamValue; }
bool IsObjectSelected(unsigned i=0) const
bool IsObjectSelected(size_t i=0) const
{ return i < myObjects.size() && !CORBA::is_nil(myObjects[i]); }
/*!