Console: rename PascalCase named methods to camelCase
This commit is contained in:
@@ -765,7 +765,7 @@ void Document::onChanged(const Property* prop)
|
||||
if (!TransDirNew.exists()) {
|
||||
if (TransDirOld.exists()) {
|
||||
if (!TransDirOld.renameFile(new_dir.c_str())) {
|
||||
Base::Console().Warning("Failed to rename '%s' to '%s'\n",
|
||||
Base::Console().warning("Failed to rename '%s' to '%s'\n",
|
||||
old_dir.c_str(),
|
||||
new_dir.c_str());
|
||||
}
|
||||
@@ -775,7 +775,7 @@ void Document::onChanged(const Property* prop)
|
||||
}
|
||||
else {
|
||||
if (!TransDirNew.createDirectories()) {
|
||||
Base::Console().Warning("Failed to create '%s'\n", new_dir.c_str());
|
||||
Base::Console().warning("Failed to create '%s'\n", new_dir.c_str());
|
||||
}
|
||||
else {
|
||||
this->TransientDir.setValue(new_dir);
|
||||
@@ -788,7 +788,7 @@ void Document::onChanged(const Property* prop)
|
||||
// make sure that the uuid is unique
|
||||
std::string uuid = this->Uid.getValueStr();
|
||||
Base::Uuid id;
|
||||
Base::Console().Warning("Document with the UUID '%s' already exists, change to '%s'\n",
|
||||
Base::Console().warning("Document with the UUID '%s' already exists, change to '%s'\n",
|
||||
uuid.c_str(),
|
||||
id.getValue().c_str());
|
||||
// recursive call of onChanged()
|
||||
@@ -846,7 +846,7 @@ Document::Document(const char* documentName)
|
||||
d->DocumentPythonObject = Py::Object(new DocumentPy(this), true);
|
||||
|
||||
#ifdef FC_LOGUPDATECHAIN
|
||||
Console().Log("+App::Document: %p\n", this);
|
||||
Console().log("+App::Document: %p\n", this);
|
||||
#endif
|
||||
std::string CreationDateString = Base::Tools::currentDateTimeString();
|
||||
std::string Author = App::GetApplication()
|
||||
@@ -942,7 +942,7 @@ Document::Document(const char* documentName)
|
||||
Document::~Document()
|
||||
{
|
||||
#ifdef FC_LOGUPDATECHAIN
|
||||
Console().Log("-App::Document: %s %p\n", getName(), this);
|
||||
Console().log("-App::Document: %s %p\n", getName(), this);
|
||||
#endif
|
||||
|
||||
try {
|
||||
@@ -952,7 +952,7 @@ Document::~Document()
|
||||
}
|
||||
|
||||
#ifdef FC_LOGUPDATECHAIN
|
||||
Console().Log("-Delete Features of %s \n", getName());
|
||||
Console().log("-Delete Features of %s \n", getName());
|
||||
#endif
|
||||
|
||||
d->clearDocument();
|
||||
@@ -1092,7 +1092,7 @@ void Document::Restore(Base::XMLReader& reader)
|
||||
addObject(type.c_str(), name.c_str(), /*isNew=*/false);
|
||||
}
|
||||
catch (Base::Exception&) {
|
||||
Base::Console().Message("Cannot create object '%s'\n", name.c_str());
|
||||
Base::Console().message("Cannot create object '%s'\n", name.c_str());
|
||||
}
|
||||
}
|
||||
reader.readEndElement("Features");
|
||||
@@ -1128,7 +1128,7 @@ void Document::Restore(Base::XMLReader& reader)
|
||||
void DocumentP::checkStringHasher(const Base::XMLReader& reader)
|
||||
{
|
||||
if (reader.hasReadFailed("StringHasher.Table.txt")) {
|
||||
Base::Console().Error(QT_TRANSLATE_NOOP(
|
||||
Base::Console().error(QT_TRANSLATE_NOOP(
|
||||
"Notifications",
|
||||
"\nIt is recommended that the user right-click the root of "
|
||||
"the document and select Mark to recompute.\n"
|
||||
@@ -1528,7 +1528,7 @@ std::vector<App::DocumentObject*> Document::readObjects(Base::XMLReader& reader)
|
||||
}
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
Base::Console().Error("Cannot create object '%s': (%s)\n", name.c_str(), e.what());
|
||||
Base::Console().error("Cannot create object '%s': (%s)\n", name.c_str(), e.what());
|
||||
}
|
||||
}
|
||||
if (!testStatus(Status::Importing)) {
|
||||
@@ -1575,7 +1575,7 @@ std::vector<App::DocumentObject*> Document::readObjects(Base::XMLReader& reader)
|
||||
pObj->setStatus(ObjectStatus::Restore, false);
|
||||
|
||||
if (reader.testStatus(Base::XMLReader::ReaderStatus::PartialRestoreInDocumentObject)) {
|
||||
Base::Console().Error("Object \"%s\" was subject to a partial restore. As a result "
|
||||
Base::Console().error("Object \"%s\" was subject to a partial restore. As a result "
|
||||
"geometry may have changed or be incomplete.\n",
|
||||
name.c_str());
|
||||
reader.clearPartialRestoreDocumentObject();
|
||||
@@ -1861,7 +1861,7 @@ private:
|
||||
}
|
||||
|
||||
if (!fi.renameFile(fn.c_str())) {
|
||||
Base::Console().Warning("Cannot rename project file to backup file\n");
|
||||
Base::Console().warning("Cannot rename project file to backup file\n");
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -1941,13 +1941,13 @@ private:
|
||||
try {
|
||||
if (!it.deleteFile()) {
|
||||
backupManagementError = true;
|
||||
Base::Console().Warning("Cannot remove backup file : %s\n",
|
||||
Base::Console().warning("Cannot remove backup file : %s\n",
|
||||
it.fileName().c_str());
|
||||
}
|
||||
}
|
||||
catch (...) {
|
||||
backupManagementError = true;
|
||||
Base::Console().Warning("Cannot remove backup file : %s\n",
|
||||
Base::Console().warning("Cannot remove backup file : %s\n",
|
||||
it.fileName().c_str());
|
||||
}
|
||||
}
|
||||
@@ -2009,7 +2009,7 @@ private:
|
||||
}
|
||||
|
||||
if (ext >= numberOfFiles + 10) {
|
||||
Base::Console().Error(
|
||||
Base::Console().error(
|
||||
"File not saved: Cannot rename project file to backup file\n");
|
||||
// throw Base::FileException("File not saved: Cannot rename project file to
|
||||
// backup file", fi);
|
||||
@@ -2021,7 +2021,7 @@ private:
|
||||
fi.deleteFile();
|
||||
}
|
||||
catch (...) {
|
||||
Base::Console().Warning("Cannot remove backup file: %s\n",
|
||||
Base::Console().warning("Cannot remove backup file: %s\n",
|
||||
fi.fileName().c_str());
|
||||
backupManagementError = true;
|
||||
}
|
||||
@@ -2320,7 +2320,7 @@ void Document::restore(const char* filename,
|
||||
Document::Restore(reader);
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
Base::Console().Error("Invalid Document.xml: %s\n", e.what());
|
||||
Base::Console().error("Invalid Document.xml: %s\n", e.what());
|
||||
setStatus(Document::RestoreError, true);
|
||||
}
|
||||
|
||||
@@ -2338,7 +2338,7 @@ void Document::restore(const char* filename,
|
||||
|
||||
if (reader.testStatus(Base::XMLReader::ReaderStatus::PartialRestore)) {
|
||||
setStatus(Document::PartialRestore, true);
|
||||
Base::Console().Error("There were errors while loading the file. Some data might have been "
|
||||
Base::Console().error("There were errors while loading the file. Some data might have been "
|
||||
"modified or not recovered at all. Look above for more specific "
|
||||
"information about the objects involved.\n");
|
||||
}
|
||||
@@ -3100,7 +3100,7 @@ int Document::recompute(const std::vector<App::DocumentObject*>& objs,
|
||||
if (it->isError()) {
|
||||
const char* text = getErrorDescription(it);
|
||||
if (text) {
|
||||
Base::Console().Error("%s: %s\n", it->Label.getValue(), text);
|
||||
Base::Console().error("%s: %s\n", it->Label.getValue(), text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user