Spreadsheet: Fixes for coverity defects Feb 2025

This commit is contained in:
Chris Hennes
2025-02-20 21:17:55 -06:00
parent c4a4ce3ae0
commit dabcb2e506
6 changed files with 16 additions and 8 deletions

View File

@@ -104,7 +104,15 @@ Sheet::Sheet()
Sheet::~Sheet()
{
clearAll();
try {
clearAll();
}
catch (boost::wrapexcept<boost::regex_error>&) {
// Don't let an exception propagate out of a destructor (calls terminate())
Base::Console().Error(
"clearAll() resulted in an exception when deleting the spreadsheet : %s\n",
*pcNameInDocument);
}
}
/**