From dfddb7eb9f9f849241011b37eb794e6c940c1b2a Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 14 Jun 2022 13:44:19 +0300 Subject: Autocommit at 14.06.2022 @ 13:44 --- src/Models/CellFormula.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Models/CellFormula.cpp') diff --git a/src/Models/CellFormula.cpp b/src/Models/CellFormula.cpp index 3c2fd26..2388498 100644 --- a/src/Models/CellFormula.cpp +++ b/src/Models/CellFormula.cpp @@ -55,7 +55,7 @@ double CellFormula::getNumeralValue() const { try { return calculate(); } - catch (std::logic_error) { + catch (std::logic_error e) { return 0; } } @@ -64,7 +64,7 @@ String CellFormula::getValueForPrint() const { try { return String() += calculate(); } - catch (std::logic_error) { + catch (std::logic_error e) { return "Error"; } } -- cgit v1.3.1-23-gd82d