Corrections for Windows compilation

This commit is contained in:
Yoann Audouin 2022-11-08 08:35:20 +01:00
parent 3c51726026
commit 57c1f8af17
3 changed files with 6 additions and 2 deletions

View File

@ -158,6 +158,8 @@ int importShape(const std::string shape_file, TopoDS_Shape& aShape){
} else { } else {
throw SALOME_Exception("Unknow format for importShape: " + type); throw SALOME_Exception("Unknow format for importShape: " + type);
} }
#else
return 0;
#endif #endif
} }
@ -180,5 +182,7 @@ int exportShape(const std::string shape_file, const TopoDS_Shape& aShape){
} else { } else {
throw SALOME_Exception("Unknow format for exportShape: " + type); throw SALOME_Exception("Unknow format for exportShape: " + type);
} }
#else
return 0;
#endif #endif
} }

View File

@ -7042,7 +7042,7 @@ TListOfListOfInt SMESH_Mesh_i::findConcurrentSubMeshes()
* \brief Set the number of threads for a parallel computation * \brief Set the number of threads for a parallel computation
*/ */
//============================================================================= //=============================================================================
void SMESH_Mesh_i::SetNbThreads(int nbThreads){ void SMESH_Mesh_i::SetNbThreads(long nbThreads){
_impl->SetNbThreads(nbThreads); _impl->SetNbThreads(nbThreads);
} }

View File

@ -673,7 +673,7 @@ private:
SMESH::submesh_array_array& theSubMeshOrder, SMESH::submesh_array_array& theSubMeshOrder,
const bool theIsDump); const bool theIsDump);
void SetNbThreads(int nbThreads); void SetNbThreads(long nbThreads);
/*! /*!
* \brief Finds concurrent sub-meshes * \brief Finds concurrent sub-meshes