mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 02:10:35 +05:00
Fix som ewarnings
This commit is contained in:
parent
6d54a9deb2
commit
af8ab09bab
@ -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;
|
||||
|
@ -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:
|
||||
|
||||
|
@ -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]); }
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user