From adcc55bc8816489c3882439e6dba4470b2f46e7d Mon Sep 17 00:00:00 2001 From: gangatp Date: Wed, 18 Dec 2024 16:30:19 +0530 Subject: [PATCH] adding braces --- Source/Model/Classes/NMR_ModelTriangleSet.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Model/Classes/NMR_ModelTriangleSet.cpp b/Source/Model/Classes/NMR_ModelTriangleSet.cpp index b28b90b24..b25bdf666 100644 --- a/Source/Model/Classes/NMR_ModelTriangleSet.cpp +++ b/Source/Model/Classes/NMR_ModelTriangleSet.cpp @@ -87,8 +87,10 @@ namespace NMR { { auto pTriangleSet = std::make_shared(m_sName, sIdentifier); - for (auto nTriangleIndex : m_sTriangles) + for (auto nTriangleIndex : m_sTriangles) + { pTriangleSet->m_sTriangles.insert(nTriangleIndex); + } return pTriangleSet; } @@ -99,7 +101,9 @@ namespace NMR { throw CNMRException(NMR_ERROR_INVALIDPARAM); for (auto nTriangleIndex : pTriangleSet->m_sTriangles) + { m_sTriangles.insert(nTriangleIndex); + } }