Base: rename Exception's PascalCase methods to camelCase
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -943,7 +943,7 @@ void Sheet::recomputeCell(CellAddress p)
|
||||
cell->setException(e.what());
|
||||
}
|
||||
else {
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
|
||||
// Mark as erroneous
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user