Console: rename PascalCase named methods to camelCase
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user