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

@@ -167,7 +167,7 @@ void MaterialLibraryLocal::createFolder(const QString& path)
QDir fileDir(filePath);
if (!fileDir.exists()) {
if (!fileDir.mkpath(filePath)) {
Base::Console().Error("Unable to create directory path '%s'\n",
Base::Console().error("Unable to create directory path '%s'\n",
filePath.toStdString().c_str());
}
}
@@ -181,7 +181,7 @@ void MaterialLibraryLocal::renameFolder(const QString& oldPath, const QString& n
QDir fileDir(filePath);
if (fileDir.exists()) {
if (!fileDir.rename(filePath, newFilePath)) {
Base::Console().Error("Unable to rename directory path '%s'\n",
Base::Console().error("Unable to rename directory path '%s'\n",
filePath.toStdString().c_str());
}
}
@@ -257,7 +257,7 @@ void MaterialLibraryLocal::deleteFile(MaterialManager& manager, const QString& p
manager.remove(material->getUUID());
}
catch (const MaterialNotFound&) {
Base::Console().Log("Unable to remove file from materials list\n");
Base::Console().log("Unable to remove file from materials list\n");
}
_materialPathMap->erase(rPath);
}
@@ -300,14 +300,14 @@ MaterialLibraryLocal::saveMaterial(const std::shared_ptr<Material>& material,
QDir fileDir(info.path());
if (!fileDir.exists()) {
if (!fileDir.mkpath(info.path())) {
Base::Console().Error("Unable to create directory path '%s'\n",
Base::Console().error("Unable to create directory path '%s'\n",
info.path().toStdString().c_str());
}
}
if (info.exists()) {
if (!overwrite) {
Base::Console().Error("File already exists '%s'\n", info.path().toStdString().c_str());
Base::Console().error("File already exists '%s'\n", info.path().toStdString().c_str());
throw MaterialExists();
}
}