Sketcher: Clean up compiler warnings

* numpoints from double to int
* Remove redundant out-of-line definition for constexpr static data member
This commit is contained in:
Chris Hennes
2025-03-07 23:37:02 -06:00
parent 71906499c4
commit 3359fee251
3 changed files with 1 additions and 8 deletions

View File

@@ -33,9 +33,6 @@ using namespace Sketcher;
//---------- Geometry Extension
constexpr std::array<const char*, ExternalGeometryExtension::NumFlags>
ExternalGeometryExtension::flag2str;
TYPESYSTEM_SOURCE(Sketcher::ExternalGeometryExtension, Part::GeometryMigrationPersistenceExtension)
void ExternalGeometryExtension::copyAttributes(Part::GeometryExtension* cpy) const

View File

@@ -32,10 +32,6 @@
using namespace Sketcher;
//---------- Geometry Extension
constexpr std::array<const char*, InternalType::NumInternalGeometryType>
SketchGeometryExtension::internaltype2str;
constexpr std::array<const char*, GeometryMode::NumGeometryMode>
SketchGeometryExtension::geometrymode2str;
TYPESYSTEM_SOURCE(Sketcher::SketchGeometryExtension, Part::GeometryMigrationPersistenceExtension)

View File

@@ -228,7 +228,7 @@ public:
private:
std::vector<double> weights;
double numpoints;
std::size_t numpoints;
};
// Weighted Linear Combination