diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/import.cc | 4 | ||||
-rw-r--r-- | src/linearextrude.cc | 2 | ||||
-rw-r--r-- | src/rotateextrude.cc | 2 | ||||
-rw-r--r-- | src/surface.cc | 2 | ||||
-rw-r--r-- | src/value.cc | 3 |
5 files changed, 7 insertions, 6 deletions
diff --git a/src/import.cc b/src/import.cc index 9d011b0..dc40c8d 100644 --- a/src/import.cc +++ b/src/import.cc @@ -118,7 +118,7 @@ PolySet *ImportNode::evaluate_polyset(class PolySetEvaluator *) const if (this->type == TYPE_STL) { - handle_dep(this->filename); + handle_dep((std::string)this->filename); std::ifstream f(this->filename.c_str(), std::ios::in | std::ios::binary); if (!f.good()) { PRINTB("WARNING: Can't open import file '%s'.", this->filename); @@ -237,7 +237,7 @@ PolySet *ImportNode::evaluate_polyset(class PolySetEvaluator *) const std::string ImportNode::toString() const { std::stringstream stream; - fs::path path(this->filename); + fs::path path((std::string)this->filename); stream << this->name(); stream << "(file = " << this->filename << ", " diff --git a/src/linearextrude.cc b/src/linearextrude.cc index 4d2730c..43db907 100644 --- a/src/linearextrude.cc +++ b/src/linearextrude.cc @@ -146,7 +146,7 @@ std::string LinearExtrudeNode::toString() const stream << this->name() << "("; if (!this->filename.empty()) { // Ignore deprecated parameters if empty - fs::path path(this->filename); + fs::path path((std::string)this->filename); stream << "file = " << this->filename << ", " "layer = " << QuotedString(this->layername) << ", " diff --git a/src/rotateextrude.cc b/src/rotateextrude.cc index 165d03b..dc8ea34 100644 --- a/src/rotateextrude.cc +++ b/src/rotateextrude.cc @@ -115,7 +115,7 @@ std::string RotateExtrudeNode::toString() const stream << this->name() << "("; if (!this->filename.empty()) { // Ignore deprecated parameters if empty - fs::path path(this->filename); + fs::path path((std::string)this->filename); stream << "file = " << this->filename << ", " "layer = " << QuotedString(this->layername) << ", " diff --git a/src/surface.cc b/src/surface.cc index d962e38..2fa3717 100644 --- a/src/surface.cc +++ b/src/surface.cc @@ -225,7 +225,7 @@ PolySet *SurfaceNode::evaluate_polyset(class PolySetEvaluator *) const std::string SurfaceNode::toString() const { std::stringstream stream; - fs::path path(this->filename); + fs::path path((std::string)this->filename); stream << this->name() << "(file = " << this->filename << ", " "center = " << (this->center ? "true" : "false") diff --git a/src/value.cc b/src/value.cc index 2602f32..666062a 100644 --- a/src/value.cc +++ b/src/value.cc @@ -25,7 +25,8 @@ */ #include "value.h" -#include <assert.h> +#include <math.h> +#include <assert.h> // fmod #include <sstream> #include <boost/foreach.hpp> #include <boost/variant/apply_visitor.hpp> |