Console: rename PascalCase named methods to camelCase
This commit is contained in:
@@ -252,7 +252,7 @@ void MaterialYamlEntry::addToTree(
|
||||
}
|
||||
catch (const Base::ValueError& e) {
|
||||
// Units mismatch
|
||||
Base::Console().Log("Units mismatch in material '%s':'%s' = '%s', "
|
||||
Base::Console().log("Units mismatch in material '%s':'%s' = '%s', "
|
||||
"setting to default property units '%s'\n",
|
||||
name.toStdString().c_str(),
|
||||
propertyName,
|
||||
@@ -267,14 +267,14 @@ void MaterialYamlEntry::addToTree(
|
||||
}
|
||||
}
|
||||
catch (const YAML::BadConversion& e) {
|
||||
Base::Console().Log("Exception %s <%s:%s> - ignored\n",
|
||||
Base::Console().log("Exception %s <%s:%s> - ignored\n",
|
||||
e.what(),
|
||||
name.toStdString().c_str(),
|
||||
propertyName.c_str());
|
||||
}
|
||||
}
|
||||
else if (propertyName != "UUID") {
|
||||
Base::Console().Log("\tProperty '%s' is not described by any model. Ignored\n",
|
||||
Base::Console().log("\tProperty '%s' is not described by any model. Ignored\n",
|
||||
propertyName.c_str());
|
||||
}
|
||||
}
|
||||
@@ -334,14 +334,14 @@ void MaterialYamlEntry::addToTree(
|
||||
}
|
||||
}
|
||||
catch (const YAML::BadConversion& e) {
|
||||
Base::Console().Log("Exception %s <%s:%s> - ignored\n",
|
||||
Base::Console().log("Exception %s <%s:%s> - ignored\n",
|
||||
e.what(),
|
||||
name.toStdString().c_str(),
|
||||
propertyName.c_str());
|
||||
}
|
||||
}
|
||||
else if (propertyName != "UUID") {
|
||||
Base::Console().Log("\tProperty '%s' is not described by any model. Ignored\n",
|
||||
Base::Console().log("\tProperty '%s' is not described by any model. Ignored\n",
|
||||
propertyName.c_str());
|
||||
}
|
||||
}
|
||||
@@ -393,8 +393,8 @@ MaterialLoader::getMaterialFromYAML(const std::shared_ptr<MaterialLibraryLocal>&
|
||||
yamlroot);
|
||||
}
|
||||
catch (YAML::Exception const& e) {
|
||||
Base::Console().Error("YAML parsing error: '%s'\n", path.toStdString().c_str());
|
||||
Base::Console().Error("\t'%s'\n", e.what());
|
||||
Base::Console().error("YAML parsing error: '%s'\n", path.toStdString().c_str());
|
||||
Base::Console().error("\t'%s'\n", e.what());
|
||||
showYaml(yamlroot);
|
||||
}
|
||||
|
||||
@@ -427,7 +427,7 @@ MaterialLoader::getMaterialFromPath(const std::shared_ptr<MaterialLibraryLocal>&
|
||||
Base::FileInfo info(pathName);
|
||||
Base::ifstream fin(info);
|
||||
if (!fin) {
|
||||
Base::Console().Error("YAML file open error: '%s'\n", pathName.c_str());
|
||||
Base::Console().error("YAML file open error: '%s'\n", pathName.c_str());
|
||||
return model;
|
||||
}
|
||||
|
||||
@@ -438,8 +438,8 @@ MaterialLoader::getMaterialFromPath(const std::shared_ptr<MaterialLibraryLocal>&
|
||||
model = getMaterialFromYAML(materialLibrary, yamlroot, path);
|
||||
}
|
||||
catch (YAML::Exception const& e) {
|
||||
Base::Console().Error("YAML parsing error: '%s'\n", pathName.c_str());
|
||||
Base::Console().Error("\t'%s'\n", e.what());
|
||||
Base::Console().error("YAML parsing error: '%s'\n", pathName.c_str());
|
||||
Base::Console().error("\t'%s'\n", e.what());
|
||||
showYaml(yamlroot);
|
||||
}
|
||||
|
||||
@@ -453,7 +453,7 @@ void MaterialLoader::showYaml(const YAML::Node& yaml)
|
||||
|
||||
out << yaml;
|
||||
std::string logData = out.str();
|
||||
Base::Console().Log("%s\n", logData.c_str());
|
||||
Base::Console().log("%s\n", logData.c_str());
|
||||
}
|
||||
|
||||
|
||||
@@ -473,7 +473,7 @@ void MaterialLoader::dereference(
|
||||
parent = materialMap->at(parentUUID);
|
||||
}
|
||||
catch (std::out_of_range&) {
|
||||
Base::Console().Log(
|
||||
Base::Console().log(
|
||||
"Unable to apply inheritance for material '%s', parent '%s' not found.\n",
|
||||
material->getName().toStdString().c_str(),
|
||||
parentUUID.toStdString().c_str());
|
||||
|
||||
Reference in New Issue
Block a user