Console: rename PascalCase named methods to camelCase

This commit is contained in:
bofdahof
2025-03-30 00:50:27 +10:00
committed by Kacper Donat
parent 1dbc0638c3
commit ba2c2ca5ad
497 changed files with 2423 additions and 2425 deletions

View File

@@ -322,7 +322,7 @@ void MaterialProperty::setValue(const QString& value)
setQuantity(Base::Quantity::parse(value.toStdString()));
}
catch (const Base::ParserError& e) {
Base::Console().Log("MaterialProperty::setValue Error '%s' - '%s'\n",
Base::Console().log("MaterialProperty::setValue Error '%s' - '%s'\n",
e.what(),
value.toStdString().c_str());
// Save as a string
@@ -730,7 +730,7 @@ void Material::addPhysical(const QString& uuid)
_physical[propertyName] = std::make_shared<MaterialProperty>(property, uuid);
}
catch (const UnknownValueType&) {
Base::Console().Error("Property '%s' has unknown type '%s'. Ignoring\n",
Base::Console().error("Property '%s' has unknown type '%s'. Ignoring\n",
property.getName().toStdString().c_str(),
property.getPropertyType().toStdString().c_str());
}
@@ -772,7 +772,7 @@ void Material::removePhysical(const QString& uuid)
setEditStateAlter();
}
catch (ModelNotFound const&) {
Base::Console().Log("Physical model not found '%s'\n", uuid.toStdString().c_str());
Base::Console().log("Physical model not found '%s'\n", uuid.toStdString().c_str());
}
}
@@ -808,7 +808,7 @@ void Material::addAppearance(const QString& uuid)
}
}
catch (ModelNotFound const&) {
Base::Console().Log("Appearance model not found '%s'\n", uuid.toStdString().c_str());
Base::Console().log("Appearance model not found '%s'\n", uuid.toStdString().c_str());
}
}
@@ -1426,7 +1426,7 @@ void Material::saveModels(QTextStream& stream, bool saveInherited) const
}
}
catch (const PropertyNotFound&) {
Base::Console().Log("Material::saveModels Property not found '%s'\n",
Base::Console().log("Material::saveModels Property not found '%s'\n",
propertyName.toStdString().c_str());
}
@@ -1757,7 +1757,7 @@ App::Material Material::getMaterialAppearance() const
if (hasAppearanceProperty(QStringLiteral("TextureImage"))) {
auto property = getAppearanceProperty(QStringLiteral("TextureImage"));
if (!property->isNull()) {
Base::Console().Log("Has 'TextureImage'\n");
Base::Console().log("Has 'TextureImage'\n");
material.image = property->getString().toStdString();
}
@@ -1766,7 +1766,7 @@ App::Material Material::getMaterialAppearance() const
else if (hasAppearanceProperty(QStringLiteral("TexturePath"))) {
auto property = getAppearanceProperty(QStringLiteral("TexturePath"));
if (!property->isNull()) {
Base::Console().Log("Has 'TexturePath'\n");
Base::Console().log("Has 'TexturePath'\n");
material.imagePath = property->getString().toStdString();
}
@@ -1823,8 +1823,8 @@ void Material::validate(const std::shared_ptr<Material>& other) const
}
if (_tags.size() != other->_tags.size()) {
Base::Console().Log("Local tags count %d\n", _tags.size());
Base::Console().Log("Remote tags count %d\n", other->_tags.size());
Base::Console().log("Local tags count %d\n", _tags.size());
Base::Console().log("Remote tags count %d\n", other->_tags.size());
throw InvalidMaterial("Material tags counts don't match");
}
if (!other->_tags.contains(_tags)) {
@@ -1832,8 +1832,8 @@ void Material::validate(const std::shared_ptr<Material>& other) const
}
if (_physicalUuids.size() != other->_physicalUuids.size()) {
Base::Console().Log("Local physical model count %d\n", _physicalUuids.size());
Base::Console().Log("Remote physical model count %d\n", other->_physicalUuids.size());
Base::Console().log("Local physical model count %d\n", _physicalUuids.size());
Base::Console().log("Remote physical model count %d\n", other->_physicalUuids.size());
throw InvalidMaterial("Material physical model counts don't match");
}
if (!other->_physicalUuids.contains(_physicalUuids)) {
@@ -1841,8 +1841,8 @@ void Material::validate(const std::shared_ptr<Material>& other) const
}
if (_physicalUuids.size() != other->_physicalUuids.size()) {
Base::Console().Log("Local appearance model count %d\n", _physicalUuids.size());
Base::Console().Log("Remote appearance model count %d\n", other->_physicalUuids.size());
Base::Console().log("Local appearance model count %d\n", _physicalUuids.size());
Base::Console().log("Remote appearance model count %d\n", other->_physicalUuids.size());
throw InvalidMaterial("Material appearance model counts don't match");
}
if (!other->_physicalUuids.contains(_physicalUuids)) {
@@ -1850,8 +1850,8 @@ void Material::validate(const std::shared_ptr<Material>& other) const
}
if (_allUuids.size() != other->_allUuids.size()) {
Base::Console().Log("Local model count %d\n", _allUuids.size());
Base::Console().Log("Remote model count %d\n", other->_allUuids.size());
Base::Console().log("Local model count %d\n", _allUuids.size());
Base::Console().log("Remote model count %d\n", other->_allUuids.size());
throw InvalidMaterial("Material model counts don't match");
}
if (!other->_allUuids.contains(_allUuids)) {