Skip to content

Commit 24a9e23

Browse files
committed
Sketcher: Clean up compiler warnings
* numpoints from double to int * Remove out-of-line definition for constexpr static data member
1 parent 50e80f4 commit 24a9e23

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

src/Mod/Sketcher/App/ExternalGeometryExtension.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ using namespace Sketcher;
3333

3434
//---------- Geometry Extension
3535

36-
constexpr std::array<const char*, ExternalGeometryExtension::NumFlags>
37-
ExternalGeometryExtension::flag2str;
38-
3936
TYPESYSTEM_SOURCE(Sketcher::ExternalGeometryExtension, Part::GeometryMigrationPersistenceExtension)
4037

4138
void ExternalGeometryExtension::copyAttributes(Part::GeometryExtension* cpy) const

src/Mod/Sketcher/App/SketchGeometryExtension.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
3232
using namespace Sketcher;
3333

3434
//---------- Geometry Extension
35-
constexpr std::array<const char*, InternalType::NumInternalGeometryType>
36-
SketchGeometryExtension::internaltype2str;
37-
constexpr std::array<const char*, GeometryMode::NumGeometryMode>
38-
SketchGeometryExtension::geometrymode2str;
3935

4036
TYPESYSTEM_SOURCE(Sketcher::SketchGeometryExtension, Part::GeometryMigrationPersistenceExtension)
4137

src/Mod/Sketcher/App/planegcs/Constraints.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ class ConstraintCenterOfGravity: public Constraint
228228

229229
private:
230230
std::vector<double> weights;
231-
double numpoints;
231+
std::size_t numpoints;
232232
};
233233

234234
// Weighted Linear Combination

0 commit comments

Comments
 (0)