Console: rename PascalCase named methods to camelCase
This commit is contained in:
@@ -78,7 +78,7 @@ PyMOD_INIT_FUNC(_PartDesign)
|
||||
}
|
||||
|
||||
PyObject* mod = PartDesign::initModule();
|
||||
Base::Console().Log("Loading PartDesign module... done\n");
|
||||
Base::Console().log("Loading PartDesign module... done\n");
|
||||
|
||||
|
||||
// NOTE: To finish the initialization of our own type objects we must
|
||||
|
||||
@@ -378,19 +378,19 @@ App::DocumentObjectExecReturn *Body::execute()
|
||||
{
|
||||
Part::BodyBase::execute();
|
||||
/*
|
||||
Base::Console().Error("Body '%s':\n", getNameInDocument());
|
||||
Base::Console().error("Body '%s':\n", getNameInDocument());
|
||||
App::DocumentObject* tip = Tip.getValue();
|
||||
Base::Console().Error(" Tip: %s\n", (tip == NULL) ? "None" : tip->getNameInDocument());
|
||||
Base::Console().error(" Tip: %s\n", (tip == NULL) ? "None" : tip->getNameInDocument());
|
||||
std::vector<App::DocumentObject*> model = Group.getValues();
|
||||
Base::Console().Error(" Group:\n");
|
||||
Base::Console().error(" Group:\n");
|
||||
for (std::vector<App::DocumentObject*>::const_iterator m = model.begin(); m != model.end(); m++) {
|
||||
if (*m == NULL) continue;
|
||||
Base::Console().Error(" %s", (*m)->getNameInDocument());
|
||||
Base::Console().error(" %s", (*m)->getNameInDocument());
|
||||
if (Body::isSolidFeature(*m)) {
|
||||
App::DocumentObject* baseFeature = static_cast<PartDesign::Feature*>(*m)->BaseFeature.getValue();
|
||||
Base::Console().Error(", Base: %s\n", baseFeature == NULL ? "None" : baseFeature->getNameInDocument());
|
||||
Base::Console().error(", Base: %s\n", baseFeature == NULL ? "None" : baseFeature->getNameInDocument());
|
||||
} else {
|
||||
Base::Console().Error("\n");
|
||||
Base::Console().error("\n");
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
@@ -301,7 +301,7 @@ App::DocumentObjectExecReturn *Draft::execute()
|
||||
// therefore unusable. See https://forum.freecad.org/viewtopic.php?f=10&t=3209&start=10#p25341
|
||||
// The only solution is to discard mkDraft and start over without the current face
|
||||
// mkDraft.Remove(face);
|
||||
Base::Console().Error("Adding face failed on %s. Omitted\n", it->c_str());
|
||||
Base::Console().error("Adding face failed on %s. Omitted\n", it->c_str());
|
||||
success = false;
|
||||
SubVals.erase(it);
|
||||
break;
|
||||
|
||||
@@ -2628,7 +2628,7 @@ int Hole::baseProfileOption_idxToBitmask(int index)
|
||||
if (index == 2) {
|
||||
return PartDesign::Hole::BaseProfileTypeOptions::OnPoints;
|
||||
}
|
||||
Base::Console().Error("Unexpected hole base profile combobox index: %i", index);
|
||||
Base::Console().error("Unexpected hole base profile combobox index: %i", index);
|
||||
return 0;
|
||||
}
|
||||
int Hole::baseProfileOption_bitmaskToIdx(int bitmask)
|
||||
@@ -2643,7 +2643,7 @@ int Hole::baseProfileOption_bitmaskToIdx(int bitmask)
|
||||
return 2;
|
||||
}
|
||||
|
||||
Base::Console().Error("Unexpected hole base profile bitmask: %i", bitmask);
|
||||
Base::Console().error("Unexpected hole base profile bitmask: %i", bitmask);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
@@ -494,9 +494,9 @@ void Pipe::getContinuousEdges(Part::TopoShape /*TopShape*/, std::vector<std::str
|
||||
TopExp::MapShapesAndAncestors(TopShape.getShape(), TopAbs_EDGE, TopAbs_EDGE, mapEdgeEdge);
|
||||
TopExp::MapShapes(TopShape.getShape(), TopAbs_EDGE, mapOfEdges);
|
||||
|
||||
Base::Console().Message("Initial edges:\n");
|
||||
Base::Console().message("Initial edges:\n");
|
||||
for (int i=0; i<SubNames.size(); ++i)
|
||||
Base::Console().Message("Subname: %s\n", SubNames[i].c_str());
|
||||
Base::Console().message("Subname: %s\n", SubNames[i].c_str());
|
||||
|
||||
unsigned int i = 0;
|
||||
while(i < SubNames.size())
|
||||
@@ -531,9 +531,9 @@ void Pipe::getContinuousEdges(Part::TopoShape /*TopShape*/, std::vector<std::str
|
||||
}
|
||||
}
|
||||
|
||||
Base::Console().Message("Final edges:\n");
|
||||
Base::Console().message("Final edges:\n");
|
||||
for (int i=0; i<SubNames.size(); ++i)
|
||||
Base::Console().Message("Subname: %s\n", SubNames[i].c_str());
|
||||
Base::Console().message("Subname: %s\n", SubNames[i].c_str());
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@ TopoShape FeatureRefine::refineShapeIfActive(const TopoShape& oldShape,
|
||||
}
|
||||
catch (Standard_Failure& err) {
|
||||
if (onError == RefineErrorPolicy::Warn) {
|
||||
Base::Console().Warning(
|
||||
Base::Console().warning(
|
||||
fmt::format("Refine failed: {}", err.GetMessageString()).c_str());
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -334,7 +334,7 @@ App::DocumentObjectExecReturn* Transformed::execute()
|
||||
|
||||
supportShape = refineShapeIfActive((supportShape));
|
||||
if (!isSingleSolidRuleSatisfied(supportShape.getShape())) {
|
||||
Base::Console().Warning("Transformed: Result has multiple solids. Only keeping the first.\n");
|
||||
Base::Console().warning("Transformed: Result has multiple solids. Only keeping the first.\n");
|
||||
}
|
||||
|
||||
this->Shape.setValue(getSolid(supportShape)); // picking the first solid
|
||||
|
||||
@@ -817,7 +817,7 @@ void SubShapeBinder::update(SubShapeBinder::UpdateOption options) {
|
||||
catch (...) {
|
||||
std::ostringstream msg;
|
||||
msg << Label.getValue() << ": failed to make 2D offset" << std::endl;
|
||||
Base::Console().Error(msg.str().c_str());
|
||||
Base::Console().error(msg.str().c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user