Base: rename Exception's PascalCase methods to camelCase

This commit is contained in:
Ladislav Michl
2025-05-01 10:14:18 +02:00
parent bf4ace0957
commit 9683cf1e4f
128 changed files with 394 additions and 394 deletions

View File

@@ -201,7 +201,7 @@ void Cell::setExpression(App::ExpressionPtr&& expr)
restore(reader, true);
}
catch (Base::Exception& e) {
e.ReportException();
e.reportException();
FC_ERR("Failed to restore style of cell " << owner->sheet()->getFullName() << '.'
<< address.toString() << ": "
<< e.what());

View File

@@ -943,7 +943,7 @@ void Sheet::recomputeCell(CellAddress p)
cell->setException(e.what());
}
else {
e.ReportException();
e.reportException();
}
// Mark as erroneous

View File

@@ -267,7 +267,7 @@ void DlgBindSheet::accept()
QDialog::accept();
}
catch (Base::Exception& e) {
e.ReportException();
e.reportException();
QMessageBox::critical(this,
tr("Bind Spreadsheet Cells"),
tr("Error:\n") + QString::fromUtf8(e.what()));
@@ -296,7 +296,7 @@ void DlgBindSheet::onDiscard()
reject();
}
catch (Base::Exception& e) {
e.ReportException();
e.reportException();
QMessageBox::critical(this, tr("Unbind cells"), QString::fromUtf8(e.what()));
Gui::Command::abortCommand();
}

View File

@@ -112,7 +112,7 @@ App::Property* DlgSheetConf::prepare(CellAddress& from,
expr.reset(App::Expression::parse(sheet, exprTxt));
}
catch (Base::Exception& e) {
e.ReportException();
e.reportException();
FC_THROWM(Base::RuntimeError, "Failed to parse expression for property");
}
if (expr->hasComponent() || !expr->isDerivedFrom<App::VariableExpression>()) {
@@ -276,7 +276,7 @@ void DlgSheetConf::accept()
QDialog::accept();
}
catch (Base::Exception& e) {
e.ReportException();
e.reportException();
QMessageBox::critical(this, tr("Setup configuration table"), QString::fromUtf8(e.what()));
if (commandActive) {
Gui::Command::abortCommand();
@@ -334,7 +334,7 @@ void DlgSheetConf::onDiscard()
QDialog::accept();
}
catch (Base::Exception& e) {
e.ReportException();
e.reportException();
QMessageBox::critical(this, tr("Unsetup configuration table"), QString::fromUtf8(e.what()));
if (commandActive) {
Gui::Command::abortCommand();

View File

@@ -563,7 +563,7 @@ void SheetModel::setCellData(QModelIndex index, QString str)
Gui::Command::doCommand(Gui::Command::Doc, "App.ActiveDocument.recompute()");
}
catch (const Base::Exception& e) {
e.ReportException();
e.reportException();
Gui::Command::abortCommand();
}
}

View File

@@ -817,7 +817,7 @@ void SheetTableView::pasteClipboard()
GetApplication().getActiveDocument()->recompute();
}
catch (Base::Exception& e) {
e.ReportException();
e.reportException();
QMessageBox::critical(Gui::getMainWindow(),
QObject::tr("Copy & Paste failed"),
QString::fromLatin1(e.what()));