mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-29 10:50:34 +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]; }
|
const SMDS_MeshNode** GetNodes() const { return (const SMDS_MeshNode**) &myVolumeNodes[0]; }
|
||||||
// Return array of volume nodes
|
// Return array of volume nodes
|
||||||
|
|
||||||
int NbNodes() const { return myVolumeNodes.size(); }
|
int NbNodes() const { return (int) myVolumeNodes.size(); }
|
||||||
// Return array of volume nodes
|
// Return array of volume nodes
|
||||||
|
|
||||||
double GetSize() const;
|
double GetSize() const;
|
||||||
|
@ -108,7 +108,7 @@ class SMESHUtils_EXPORT SMESH_OctreeNode : public SMESH_Octree
|
|||||||
/*!
|
/*!
|
||||||
* \brief Return nb nodes in a tree
|
* \brief Return nb nodes in a tree
|
||||||
*/
|
*/
|
||||||
int NbNodes() const { return myNodes.size(); }
|
size_t NbNodes() const { return myNodes.size(); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ public:
|
|||||||
void SetObjects(SMESH::string_array_var& objEntries);
|
void SetObjects(SMESH::string_array_var& objEntries);
|
||||||
|
|
||||||
template<class TInterface>
|
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]);
|
if ( IsObjectSelected(i) ) return TInterface::_narrow(myObjects[i]);
|
||||||
return TInterface::_nil();
|
return TInterface::_nil();
|
||||||
}
|
}
|
||||||
@ -77,7 +77,7 @@ public:
|
|||||||
|
|
||||||
QString GetValue() const { return myParamValue; }
|
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]); }
|
{ return i < myObjects.size() && !CORBA::is_nil(myObjects[i]); }
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Loading…
Reference in New Issue
Block a user