From: Esukhareva Date: Wed, 30 Oct 2024 09:19:28 +0000 (+0000) Subject: bos #43434 [CEA][Windows] auto in function declaration X-Git-Tag: V9_14_0a1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Ftlpr%2F57%2Fhead;p=modules%2Fsmesh.git bos #43434 [CEA][Windows] auto in function declaration --- diff --git a/src/SMESHUtils/SMESH_RegularGrid.cxx b/src/SMESHUtils/SMESH_RegularGrid.cxx index 47f541b74..d066c7ab5 100644 --- a/src/SMESHUtils/SMESH_RegularGrid.cxx +++ b/src/SMESHUtils/SMESH_RegularGrid.cxx @@ -337,7 +337,10 @@ std::tuple SMESH_RegularGrid::getFaceLimits( const FaceType fac // Find the left bottom corner of the box face from the 4 points and return its index // Auxiliary for the GetCommontInterface function -static int findLeftBottomCorner(auto& V0, auto& V1, auto& V2, auto& V3) +static int findLeftBottomCorner(const std::shared_ptr& V0, + const std::shared_ptr& V1, + const std::shared_ptr& V2, + const std::shared_ptr& V3) { // Find the left bottom corner of the box face from the 4 points auto isLeftBottom = [](const std::shared_ptr& a, const std::shared_ptr& b) { @@ -364,7 +367,12 @@ static int findLeftBottomCorner(auto& V0, auto& V1, auto& V2, auto& V3) // This function transforms the index limits of a face based on the position of the left bottom corner. // It ensures that the face limits are correctly oriented by swapping indices if necessary. // Auxiliary for the GetCommontInterface function -void SMESH_RegularGrid::transformIndexLimits(FaceType face, std::vector& faceLimits, auto& V0, auto& V1, auto& V2, auto& V3) +void SMESH_RegularGrid::transformIndexLimits(FaceType face, + std::vector& faceLimits, + const std::shared_ptr& V0, + const std::shared_ptr& V1, + const std::shared_ptr& V2, + const std::shared_ptr& V3) { int indexOfLeftBottom = findLeftBottomCorner(V0, V1, V2, V3); if(indexOfLeftBottom == 0) diff --git a/src/SMESHUtils/SMESH_RegularGrid.hxx b/src/SMESHUtils/SMESH_RegularGrid.hxx index 9d4afb27f..7aaac2c58 100644 --- a/src/SMESHUtils/SMESH_RegularGrid.hxx +++ b/src/SMESHUtils/SMESH_RegularGrid.hxx @@ -356,7 +356,12 @@ namespace SMESHUtils // This function transforms the index limits of a face based on the position of the left bottom corner. // It ensures that the face limits are correctly oriented by swapping indices if necessary. // Auxiliary for the GetCommontInterface function - void transformIndexLimits(FaceType face, std::vector& faceLimits, auto& V0, auto& V1, auto& V2, auto& V3); + void transformIndexLimits(FaceType face, + std::vector& faceLimits, + const std::shared_ptr& V0, + const std::shared_ptr& V1, + const std::shared_ptr& V2, + const std::shared_ptr& V3); private: int myId;