Spreadsheet: Fixes for coverity defects Feb 2025
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user