Skip to content

Commit ea8951b

Browse files
committed
// formatting
1 parent fef062a commit ea8951b

14 files changed

Lines changed: 32 additions & 29 deletions

File tree

src/DataExchange/TKDEVRML/VrmlData/VrmlData_ShapeConvert.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ occ::handle<VrmlData_Geometry> VrmlData_ShapeConvert::makeTShapeNode(
123123
{
124124
TopoDS_Shape aTestedShapeRev = aTestedShape;
125125
aTestedShapeRev.Orientation(isReverse ? TopAbs_FORWARD : TopAbs_REVERSED);
126-
occ::handle<VrmlData_IndexedFaceSet> aFaceSetToReuse;
126+
occ::handle<VrmlData_IndexedFaceSet> aFaceSetToReuse;
127127
const occ::handle<VrmlData_Geometry>* pRevNode = myRelMap.Seek(aTestedShapeRev);
128128
if (pRevNode)
129129
aFaceSetToReuse = occ::down_cast<VrmlData_IndexedFaceSet>(*pRevNode);

src/Draw/TKDCAF/DNaming/DNaming.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ static void LoadC0Vertices(const TopoDS_Shape& S, const occ::handle<TDF_TagSourc
195195
TopExp_Explorer explV(aFace, TopAbs_VERTEX);
196196
for (; explV.More(); explV.Next())
197197
{
198-
const TopoDS_Shape& aVertex = explV.Current();
198+
const TopoDS_Shape& aVertex = explV.Current();
199199
NCollection_List<TopoDS_Shape>* pList = vertexNaborFaces.TryBound(aVertex, empty);
200200
bool faceIsNew = true;
201201
for (NCollection_List<TopoDS_Shape>::Iterator itrF(*pList); itrF.More(); itrF.Next())
@@ -267,8 +267,8 @@ static void LoadC0Edges(const TopoDS_Shape& S, const occ::handle<TDF_TagSource>&
267267
// clang-format on
268268
for (; anEx.More(); anEx.Next())
269269
{
270-
bool aC0 = false;
271-
const TopoDS_Shape& anEdge1 = anEx.Current();
270+
bool aC0 = false;
271+
const TopoDS_Shape& anEdge1 = anEx.Current();
272272
const NCollection_List<TopoDS_Shape>* pList1 = edgeNaborFaces.Seek(anEdge1);
273273
if (pList1)
274274
{

src/FoundationClasses/TKernel/GTests/NCollection_DataMap_Test.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ TEST_F(NCollection_DataMapTest, TryBound_NoOverwrite)
289289
// TryBound on existing key should NOT overwrite, just return pointer
290290
TCollection_AsciiString* pVal2 = aMap.TryBound(1, "Second");
291291
ASSERT_NE(pVal2, nullptr);
292-
EXPECT_EQ(*pVal2, "First"); // Should still be "First", not "Second"
293-
EXPECT_EQ(pVal1, pVal2); // Should be the same pointer
292+
EXPECT_EQ(*pVal2, "First"); // Should still be "First", not "Second"
293+
EXPECT_EQ(pVal1, pVal2); // Should be the same pointer
294294
EXPECT_EQ(aMap.Extent(), 1); // Size should not change
295295

296296
// Compare with Bound which DOES overwrite

src/FoundationClasses/TKernel/GTests/NCollection_IndexedDataMap_Test.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -835,12 +835,13 @@ TEST(NCollection_IndexedDataMapTest, BoundWithMoveSemantics)
835835
NCollection_IndexedDataMap<TCollection_AsciiString, TCollection_AsciiString> aMap;
836836

837837
// Test with rvalue key
838-
TCollection_AsciiString* p1 = aMap.Bound(TCollection_AsciiString("Key1"), TCollection_AsciiString("Value1"));
838+
TCollection_AsciiString* p1 =
839+
aMap.Bound(TCollection_AsciiString("Key1"), TCollection_AsciiString("Value1"));
839840
EXPECT_TRUE(p1 != nullptr);
840841
EXPECT_TRUE(p1->IsEqual("Value1"));
841842

842843
// Test with rvalue item
843-
TCollection_AsciiString aKey2("Key2");
844+
TCollection_AsciiString aKey2("Key2");
844845
TCollection_AsciiString* p2 = aMap.Bound(aKey2, TCollection_AsciiString("Value2"));
845846
EXPECT_TRUE(p2 != nullptr);
846847
EXPECT_TRUE(p2->IsEqual("Value2"));

src/FoundationClasses/TKernel/GTests/NCollection_IndexedMap_Test.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ TEST(NCollection_IndexedMapTest, AddedWithMoveSemantics)
654654
EXPECT_EQ(aMap.Extent(), 1);
655655

656656
// Test with lvalue
657-
TCollection_AsciiString aKey("Second");
657+
TCollection_AsciiString aKey("Second");
658658
const TCollection_AsciiString& ref2 = aMap.Added(aKey);
659659
EXPECT_TRUE(ref2.IsEqual("Second"));
660660
EXPECT_EQ(aMap.Extent(), 2);

src/FoundationClasses/TKernel/NCollection/NCollection_IndexedDataMap.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ public:
506506
aNewIndex,
507507
std::forward<TheItemType>(theItem),
508508
myData1[aHash]);
509-
myData1[aHash] = aNode;
509+
myData1[aHash] = aNode;
510510
myData2[aNewIndex - 1] = aNode;
511511
return &aNode->ChangeValue();
512512
}

src/FoundationClasses/TKernel/Resource/Resource_Manager.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ double Resource_Manager::Real(const char* aResourceName) const
437437

438438
const char* Resource_Manager::Value(const char* aResource) const
439439
{
440-
TCollection_AsciiString Resource(aResource);
440+
TCollection_AsciiString Resource(aResource);
441441
const TCollection_AsciiString* pVal = myUserMap.Seek(Resource);
442442
if (pVal)
443443
return pVal->ToCString();
@@ -454,7 +454,7 @@ const char* Resource_Manager::Value(const char* aResource) const
454454

455455
const char16_t* Resource_Manager::ExtValue(const char* aResource)
456456
{
457-
TCollection_AsciiString Resource(aResource);
457+
TCollection_AsciiString Resource(aResource);
458458
const TCollection_ExtendedString* pVal = myExtStrMap.Seek(Resource);
459459
if (pVal)
460460
return pVal->ToExtString();
@@ -516,8 +516,8 @@ void Resource_Manager::SetResource(const char* aResource, const char16_t* aValue
516516
//=======================================================================
517517
void Resource_Manager::SetResource(const char* aResource, const char* aValue)
518518
{
519-
TCollection_AsciiString Resource = aResource;
520-
TCollection_AsciiString Value = aValue;
519+
TCollection_AsciiString Resource = aResource;
520+
TCollection_AsciiString Value = aValue;
521521
*myUserMap.Bound(Resource, Value) = Value;
522522
}
523523

src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_Evolved.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,9 @@ void BRepFill_Evolved::VerticalPerform(const TopoDS_Face& Sp,
13951395
{
13961396
const TopoDS_Edge& anEdge = TopoDS::Edge(Exp.Current());
13971397
const TopoDS_Shape& AE = OffAnc.Ancestor(anEdge);
1398-
myMap.TryBound(AE, EmptyMap)->TryBound(V1, NCollection_List<TopoDS_Shape>())->Append(anEdge);
1398+
myMap.TryBound(AE, EmptyMap)
1399+
->TryBound(V1, NCollection_List<TopoDS_Shape>())
1400+
->Append(anEdge);
13991401
}
14001402
First = false;
14011403
}
@@ -1419,7 +1421,7 @@ void BRepFill_Evolved::VerticalPerform(const TopoDS_Face& Sp,
14191421
{
14201422
const NCollection_List<TopoDS_Shape>& LOF = it.Value()(V1);
14211423
NCollection_List<TopoDS_Shape>::Iterator itLOF(LOF);
1422-
NCollection_List<TopoDS_Shape>* pListV2 =
1424+
NCollection_List<TopoDS_Shape>* pListV2 =
14231425
myMap.ChangeFind(it.Key()).TryBound(V2, NCollection_List<TopoDS_Shape>());
14241426
NCollection_List<TopoDS_Shape>* pListE =
14251427
myMap.ChangeFind(it.Key()).TryBound(E, NCollection_List<TopoDS_Shape>());

src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_Builder1.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1851,14 +1851,14 @@ int TopOpeBRepBuild_Builder1::TwoPiecesON(const NCollection_Sequence<TopoDS_Shap
18511851
else if (aStateObj == TopAbs_IN && aStateTool == TopAbs_IN)
18521852
{
18531853
if (myProcessedPartsON2d.Add(aPieceObj) == myProcessedPartsON2d.Extent())
1854-
{ // we proceed IsSame only if we didn't it before
1854+
{ // we proceed IsSame only if we didn't it before
18551855
IsSame2d(aSeq, aListOfPiecesOut2d); // Perform IsSame 2d and keep periodic parts
18561856
}
18571857
}
18581858
else if (aStateObj == TopAbs_OUT && aStateTool == TopAbs_OUT)
18591859
{
18601860
if (myProcessedPartsON2d.Add(aPieceObj) == myProcessedPartsON2d.Extent())
1861-
{ // we proceed IsSame only if we didn't it before
1861+
{ // we proceed IsSame only if we didn't it before
18621862
IsSame2d(aSeq, aListOfPiecesOut2d); // Perform IsSame 2d and keep periodic parts
18631863
}
18641864
}
@@ -1926,7 +1926,7 @@ int TopOpeBRepBuild_Builder1::TwoPiecesON(const NCollection_Sequence<TopoDS_Shap
19261926
else if (aStateObj == TopAbs_IN && aStateTool == TopAbs_IN)
19271927
{
19281928
if (myProcessedPartsON2d.Add(aPieceObj) == myProcessedPartsON2d.Extent())
1929-
{ // we proceed IsSame only if we didn't it before
1929+
{ // we proceed IsSame only if we didn't it before
19301930
IsSame2d(aSeq, aListOfPiecesOut2d); // Perform IsSame 2d and keep periodic parts
19311931
}
19321932
}

src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_Builder.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,10 @@ void BRepFeat_Builder::RebuildFaces()
350350
aExp.Init(aFF, TopAbs_EDGE);
351351
for (; aExp.More(); aExp.Next())
352352
{
353-
const TopoDS_Edge& aE = (*(TopoDS_Edge*)(&aExp.Current()));
354-
anOriE = aE.Orientation();
355-
bIsDegenerated = BRep_Tool::Degenerated(aE);
356-
bIsClosed = BRep_Tool::IsClosed(aE, aF);
353+
const TopoDS_Edge& aE = (*(TopoDS_Edge*)(&aExp.Current()));
354+
anOriE = aE.Orientation();
355+
bIsDegenerated = BRep_Tool::Degenerated(aE);
356+
bIsClosed = BRep_Tool::IsClosed(aE, aF);
357357
NCollection_List<TopoDS_Shape>* pLEIm = myImages.ChangeSeek(aE);
358358
if (pLEIm)
359359
{

0 commit comments

Comments
 (0)