From 2bff3f53435b2c9fb12dcb0d28d2b5669cf8551f Mon Sep 17 00:00:00 2001 From: bgbsww Date: Fri, 3 May 2024 12:07:02 -0400 Subject: [PATCH] Lint corrections --- src/App/PropertyLinks.cpp | 4 +++- .../PartDesignTests/TestTopologicalNamingProblem.py | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/App/PropertyLinks.cpp b/src/App/PropertyLinks.cpp index 2dfeff7e2eb5..c0c02d3e453a 100644 --- a/src/App/PropertyLinks.cpp +++ b/src/App/PropertyLinks.cpp @@ -1205,6 +1205,8 @@ static inline const std::string &getSubNameWithStyle(const std::string &subName, return tmp; } } +#else + (void) tmp; #endif return shadow.first; } @@ -1259,8 +1261,8 @@ PyObject *PropertyLinkSub::getPyObject() Py::List list(static_cast(_cSubList.size())); if (_pcLinkSub) { tup[0] = Py::asObject(_pcLinkSub->getPyObject()); - int i = 0; #ifdef FC_USE_TNP_FIX + int i = 0; for (auto &sub : getSubValues(true)) list[i++] = Py::String(sub); #else diff --git a/src/Mod/PartDesign/PartDesignTests/TestTopologicalNamingProblem.py b/src/Mod/PartDesign/PartDesignTests/TestTopologicalNamingProblem.py index 8cfb7d4af23a..a66113eb2228 100644 --- a/src/Mod/PartDesign/PartDesignTests/TestTopologicalNamingProblem.py +++ b/src/Mod/PartDesign/PartDesignTests/TestTopologicalNamingProblem.py @@ -980,4 +980,3 @@ def create_t_sketch(self): def tearDown(self): """ Close our test document """ App.closeDocument("PartDesignTestTNP") - pass \ No newline at end of file