From f72d362eda3fc69cc4b599318974abb92ac58a85 Mon Sep 17 00:00:00 2001 From: supermerill Date: Tue, 15 Oct 2024 15:37:57 +0200 Subject: [PATCH] warning --- src/libslic3r/ExtrusionEntity.hpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/libslic3r/ExtrusionEntity.hpp b/src/libslic3r/ExtrusionEntity.hpp index 3157a2e3df5..d4dec49739b 100644 --- a/src/libslic3r/ExtrusionEntity.hpp +++ b/src/libslic3r/ExtrusionEntity.hpp @@ -639,6 +639,8 @@ struct HasThisRoleVisitor : public HasRoleVisitor{ //call simplify for all paths. class ConfigOptionFloatOrPercent; class SimplifyVisitor : public ExtrusionVisitorRecursive { +public: + using ExtrusionVisitorRecursive::use; bool m_use_arc_fitting; coordf_t m_scaled_resolution; const ConfigOptionFloatOrPercent* m_arc_fitting_tolearance; @@ -649,6 +651,7 @@ class SimplifyVisitor : public ExtrusionVisitorRecursive { }; class GetPathsVisitor : public ExtrusionVisitorRecursive { public: + using ExtrusionVisitorRecursive::use; std::vector paths; std::vector paths3D; virtual void use(ExtrusionPath& path) override { @@ -660,6 +663,8 @@ class GetPathsVisitor : public ExtrusionVisitorRecursive { }; class ExtrusionVolume : public ExtrusionVisitorRecursiveConst { +public: + using ExtrusionVisitorRecursiveConst::use; bool _with_gap_fill = true; public: double volume = 0; //unscaled @@ -672,8 +677,9 @@ class ExtrusionVolume : public ExtrusionVisitorRecursiveConst { }; class ExtrusionModifyFlow : public ExtrusionVisitorRecursive { - double _flow_mult = 1.; public: + using ExtrusionVisitorRecursive::use; + double _flow_mult = 1.; ExtrusionModifyFlow(double flow_mult) : _flow_mult(flow_mult) {} void use(ExtrusionPath &path) override { path.mm3_per_mm *= _flow_mult; path.width *= _flow_mult; } void use(ExtrusionPath3D &path3D) override { path3D.mm3_per_mm *= _flow_mult; path3D.width *= _flow_mult; } @@ -683,6 +689,8 @@ class ExtrusionModifyFlow : public ExtrusionVisitorRecursive { #if _DEBUG struct LoopAssertVisitor : public ExtrusionVisitorRecursiveConst { +public: + using ExtrusionVisitorRecursiveConst::use; virtual void default_use(const ExtrusionEntity& entity) override {}; virtual void use(const ExtrusionPath &path) override { assert(path.length() > SCALED_EPSILON); } virtual void use(const ExtrusionLoop &loop) override {