From d3f6f3e49ebed28842045b54ea9286e6b0fca646 Mon Sep 17 00:00:00 2001 From: CalligaroV Date: Sun, 8 Sep 2024 10:39:54 +0200 Subject: [PATCH] Sketcher/Toponaming: import code for SketchObject::checkSubName() from LS3 * applied review hints Signed-off-by: CalligaroV --- src/Mod/Sketcher/App/SketchObject.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index 1fd24adc10..7c1e146aa5 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -11374,7 +11374,6 @@ Data::IndexedName SketchObject::checkSubName(const char *subname) const{ if (!valid) { FC_ERR("invalid subname " << subname); - // return sub; return Data::IndexedName(); } @@ -11405,7 +11404,6 @@ Data::IndexedName SketchObject::checkSubName(const char *subname) const{ int idx = getVertexIndexGeoPos(geoId, static_cast(posId)); if (idx < 0) { FC_ERR("invalid subname " << subname); - // return sub; return Data::IndexedName(); } return Data::IndexedName::fromConst("Vertex", idx + 1);