Merge pull request #19761 from chennes/coverityFixesFeb2025

Base: Coverity fixes from February 2025 run (round 1)
This commit is contained in:
Chris Hennes
2025-03-02 16:15:17 -06:00
committed by GitHub
8 changed files with 44 additions and 28 deletions

View File

@@ -24,6 +24,7 @@
#ifndef _PreComp_
#include <boost/tokenizer.hpp>
#include <boost/regex.hpp>
#include <deque>
#include <memory>
#include <sstream>
@@ -110,7 +111,15 @@ Sheet::Sheet()
Sheet::~Sheet()
{
clearAll();
try {
clearAll();
}
catch (...) {
// 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);
}
}
/**