[PD] remove unnecessary Unicode characters

they cause problems: https://forum.freecadweb.org/viewtopic.php?p=559077#p559077
This commit is contained in:
Uwe
2022-01-06 02:57:53 +01:00
parent 0c0239571b
commit 76c611ae2a
2 changed files with 8 additions and 8 deletions

View File

@@ -870,9 +870,9 @@ void Hole::updateHoleCutParams()
}
}
// handle legacy types but dont change user settings for
// handle legacy types but don't change user settings for
// user defined None, Counterbore and Countersink
// handle legacy types but dont change user settings for
// handle legacy types but don't change user settings for
// user defined None, Counterbore and Countersink
else if (holeCutTypeStr == "Cheesehead (deprecated)") {
HoleCutDiameter.setValue(diameterVal * 1.6);
@@ -2200,7 +2200,7 @@ void from_json(const nlohmann::json &j, Hole::CutDimensionSet &t)
else if (thread_type_string == "metricfine")
t.thread_type = Hole::CutDimensionSet::MetricFine;
else
throw Base::IndexError(std::string(u8"Thread type ") + thread_type_string + u8" unsupported");
throw Base::IndexError(std::string("Thread type '") + thread_type_string + "' unsupported");
std::string cut_type_string = j["cut_type"].get<std::string>();
if (cut_type_string == "counterbore") {
@@ -2213,7 +2213,7 @@ void from_json(const nlohmann::json &j, Hole::CutDimensionSet &t)
t.angle = j["angle"].get<double>();
}
else
throw Base::IndexError(std::string("Cut type ") + cut_type_string + " unsupported");
throw Base::IndexError(std::string("Cut type '") + cut_type_string + "' unsupported");
t.name = j["name"].get<std::string>();
}
@@ -2241,7 +2241,7 @@ void Hole::readCutDefinitions()
addCutType(screwtype);
}
catch(std::exception &e) {
std::cerr << "Failed reading " << f.filePath() << " with: "<< e.what() << "\n";
std::cerr << "Failed reading '" << f.filePath() << "' with: "<< e.what() << "\n";
}
}
}